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