From 7ec6522b9d9b545003854c858d5e82035e71bdf1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Jul 2018 09:35:42 +1000 Subject: [PATCH] AP_Compass: default to right mag offsets for SITL --- libraries/AP_Compass/AP_Compass_SITL.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Compass/AP_Compass_SITL.cpp b/libraries/AP_Compass/AP_Compass_SITL.cpp index 98cf43157f..b82aae6c6e 100644 --- a/libraries/AP_Compass/AP_Compass_SITL.cpp +++ b/libraries/AP_Compass/AP_Compass_SITL.cpp @@ -13,6 +13,9 @@ AP_Compass_SITL::AP_Compass_SITL(Compass &compass): if (_sitl != nullptr) { _compass._setup_earth_field(); for (uint8_t i=0; imag_ofs); + _compass_instance[i] = register_compass(); set_dev_id(_compass_instance[i], AP_HAL::Device::make_bus_id(AP_HAL::Device::BUS_TYPE_SITL, i, 0, DEVTYPE_SITL));