From 51020387c8bca9c5d7766cf17352bc4dfdd7b1b5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 22 Jun 2016 13:42:45 +1000 Subject: [PATCH] sim_vehicle.py: allow model to be overridden on command line --- Tools/autotest/sim_vehicle.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index 91e5273e4d..da192ed820 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -202,6 +202,7 @@ group_sim.add_option("-t", "--tracker-location", default='CMAC_PILOTSBOX', type= group_sim.add_option("-w", "--wipe-eeprom", action='store_true', default=False, help='wipe EEPROM and reload parameters') group_sim.add_option("-m", "--mavproxy-args", default=None, type='string', help='additional arguments to pass to mavproxy.py') group_sim.add_option("", "--strace", action='store_true', default=False, help="strace the ArduPilot binary") +group_sim.add_option("", "--model", type='string', default=None, help='Override simulation model to use') parser.add_option_group(group_sim) @@ -422,6 +423,9 @@ def options_for_frame(frame, vehicle, opts): if not ret.has_key("model"): ret["model"] = frame + if opts.model is not None: + ret["model"] = opts.model + if not ret.has_key("make_target"): ret["make_target"] = "sitl"