Tools: sim_vehicle: pass on slave comandline CMD

This commit is contained in:
Iampete1 2021-04-25 01:34:27 +01:00 committed by Andrew Tridgell
parent 612ea70e5b
commit 27b324742e

View File

@ -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)