autotest: sim_vehicle.py multicasting

Added multicasting support in sim_vehicle.py by using --mcast.
This commit is contained in:
Andrew Tridgell 2019-01-17 07:49:14 +11:00
parent 7eccf82f6d
commit 2f1f35ef03
1 changed files with 10 additions and 1 deletions

View File

@ -593,6 +593,8 @@ def start_vehicle(binary, autotest, opts, stuff, loc):
progress("Adding parameters from (%s)" % (str(opts.add_param_file),))
if path is not None:
cmd.extend(["--defaults", path])
if opts.mcast:
cmd.extend(["--uartA mcast:"])
run_in_terminal_window(autotest, cmd_name, cmd)
@ -614,7 +616,10 @@ def start_mavproxy(opts, stuff):
if opts.hil:
cmd.extend(["--load-module", "HIL"])
else:
cmd.extend(["--master", mavlink_port])
if opts.mcast:
cmd.extend(["--master", "mcast:"])
else:
cmd.extend(["--master", mavlink_port])
if stuff["sitl-port"]:
cmd.extend(["--sitl", simout_port])
@ -879,6 +884,10 @@ group_sim.add_option("", "--fresh-params",
dest='fresh_params',
default=False,
help="Generate and use local parameter help XML")
group_sim.add_option("", "--mcast",
action="store_true",
default=False,
help="Use multicasting at default 239.255.145.50:14550")
group_sim.add_option("", "--osd",
action='store_true',
dest='OSD',