From c36687a79f5efa2762d85769e1efd1921517d996 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Dec 2019 13:15:28 +1100 Subject: [PATCH] SITL: added SIM_MAG_SCALING for testing scale factor errors # Conflicts: # libraries/SITL/SITL.cpp --- libraries/SITL/SITL.cpp | 2 ++ libraries/SITL/SITL.h | 1 + 2 files changed, 3 insertions(+) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index fee7772760..1cb35a078a 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -189,6 +189,8 @@ const AP_Param::GroupInfo SITL::var_info2[] = { // extra delay per main loop AP_GROUPINFO("LOOP_DELAY", 55, SITL, loop_delay, 0), + AP_GROUPINFO("MAG_SCALING", 60, SITL, mag_scaling, 1), + AP_GROUPEND }; diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index f33b0723e7..8b870a047a 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -177,6 +177,7 @@ public: AP_Int8 baro_count; // number of simulated baros to create AP_Int8 gps_hdg_enabled; // enable the output of a NMEA heading HDT sentence AP_Int32 loop_delay; // extra delay to add to every loop + AP_Float mag_scaling; // scaling factor on first compasses // wind control enum WindType {