diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index 80e19d40ae49f..e8ab1834abb2c 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -833,6 +833,8 @@ def start_vehicle(binary, opts, stuff, spawns=None): cmd.append("--start-time=%d" % start_time_UTC) cmd.append("--sim-address=%s" % cmd_opts.sim_address) + if opts.enable_fgview: + cmd.append("--enable-fgview") old_dir = os.getcwd() for i, i_dir in zip(instances, instance_dir): @@ -1340,6 +1342,10 @@ def generate_frame_help(): help="Enable PPP networking") group_sim.add_option("--enable-networking-tests", action='store_true', help="Enable networking tests") +group_sim.add_option("--enable-fgview", + action='store_true', + default=False, + help="Enable FlightGear view") parser.add_option_group(group_sim)