From fec2025469dc75dd090935fd600d1ccd54e62a65 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Mar 2015 22:32:35 +1100 Subject: [PATCH] AP_Compass: added set_hil_mode() --- libraries/AP_Compass/Compass.cpp | 7 ++++++- libraries/AP_Compass/Compass.h | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Compass/Compass.cpp b/libraries/AP_Compass/Compass.cpp index 4e4ed0b39f..2dbe052a62 100644 --- a/libraries/AP_Compass/Compass.cpp +++ b/libraries/AP_Compass/Compass.cpp @@ -280,7 +280,8 @@ Compass::Compass(void) : _thr_or_curr(0.0f), _backend_count(0), _compass_count(0), - _board_orientation(ROTATION_NONE) + _board_orientation(ROTATION_NONE), + _hil_mode(false) { AP_Param::setup_object_defaults(this, var_info); for (uint8_t i=0; i