From 27b324742e16d1808a4af6827191b7eef251ab5a Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 25 Apr 2021 01:34:27 +0100 Subject: [PATCH] Tools: sim_vehicle: pass on slave comandline CMD --- Tools/autotest/sim_vehicle.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index c67dc0d618..39301b0319 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -644,6 +644,8 @@ def start_vehicle(binary, opts, stuff, spawns=None): cmd.extend(["--speedup", str(opts.speedup)]) if opts.sysid is not None: cmd.extend(["--sysid", str(opts.sysid)]) + if opts.slave is not None: + cmd.extend(["--slave", str(opts.slave)]) if opts.sitl_instance_args: # this could be a lot better: cmd.extend(opts.sitl_instance_args.split(" ")) @@ -1114,6 +1116,10 @@ group_sim.add_option("--ekf-double", group_sim.add_option("--ekf-single", action='store_true', help="use single precision in EKF") +group_sim.add_option("", "--slave", + type='int', + default=0, + help="Set the number of JSON slave") parser.add_option_group(group_sim)