From e9e397f548ce508726fb68632a9424d8750a4feb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 2 Oct 2019 14:20:35 +1000 Subject: [PATCH] autotest: allow --moddebug to sim_vehicle.py helps people debugging install --- Tools/autotest/sim_vehicle.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index a90a87cd10..9980b862e5 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -720,6 +720,8 @@ def start_mavproxy(opts, stuff): cmd.append('--console') if opts.aircraft is not None: cmd.extend(['--aircraft', opts.aircraft]) + if opts.moddebug: + cmd.append('--moddebug=%u' % opts.moddebug) if opts.fresh_params: # these were built earlier: @@ -979,6 +981,10 @@ group.add_option("", "--console", group.add_option("", "--aircraft", default=None, help="store state and logs in named directory") +group.add_option("", "--moddebug", + default=0, + type=int, + help="mavproxy module debug") parser.add_option_group(group) cmd_opts, cmd_args = parser.parse_args()