From cb3c1742e8393e692c212d465f2223bbe296d3af Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 28 Apr 2020 11:30:39 +1000 Subject: [PATCH] Tools: sim_vehicle.py: add --enable-math-check-indexes --- Tools/autotest/sim_vehicle.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index d3a247fd51..3561154221 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -305,6 +305,9 @@ def do_build_waf(opts, frame_options): if opts.flash_storage: cmd_configure.append("--sitl-flash-storage") + if opts.math_check_indexes: + cmd_configure.append("--enable-math-check-indexes") + if opts.disable_ekf2: cmd_configure.append("--disable-ekf2") @@ -846,6 +849,11 @@ group_build.add_option("-s", "--build-system", type='choice', choices=["make", "waf"], help="build system to use") +group_build.add_option("--enable-math-check-indexes", + default=False, + action="store_true", + dest="math_check_indexes", + help="enable checking of math indexes") group_build.add_option("", "--rebuild-on-failure", dest="rebuild_on_failure", action='store_true',