mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
Tools: sim_vehicle: pass on slave comandline CMD
This commit is contained in:
parent
612ea70e5b
commit
27b324742e
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user