From fdc7dac61c518b829215f0f4b8f78de6b45f25e9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 16 Dec 2019 21:04:53 +1100 Subject: [PATCH] SITL: added SIM_MAG_SCALING --- 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 e111a1829f..5e1520fe38 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -195,6 +195,8 @@ const AP_Param::GroupInfo SITL::var_info2[] = { // @Path: ./SIM_ToneAlarm.cpp AP_SUBGROUPINFO(tonealarm_sim, "TA_", 57, SITL, ToneAlarm), + AP_GROUPINFO("MAG_SCALING", 60, SITL, mag_scaling, 1), + AP_GROUPEND }; diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index 7552ad33ec..d321818c47 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -179,6 +179,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 {