From 93810ab42aaf9c4671872bb3c36d4cfffef2021f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 26 Oct 2017 15:02:02 +1100 Subject: [PATCH] Tools: sim_vehicle.py: clarify comment about vagrant and mavlink-out --- Tools/autotest/sim_vehicle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index eef987b836..9e381d6e55 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -564,11 +564,11 @@ def start_mavproxy(opts, stuff): if stuff["sitl-port"]: cmd.extend(["--sitl", simout_port]) - # If running inside of a vagrant guest, then we probably want to - # forward our mavlink out to the containing host OS ports = [p + 10 * cmd_opts.instance for p in [14550, 14551]] for port in ports: if os.path.isfile("/ardupilot.vagrant"): + # We're running inside of a vagrant guest; forward our + # mavlink out to the containing host OS cmd.extend(["--out", "10.0.2.2:" + str(port)]) else: cmd.extend(["--out", "127.0.0.1:" + str(port)])