diff --git a/libraries/AP_AccelCal/AP_AccelCal.h b/libraries/AP_AccelCal/AP_AccelCal.h index 539a96f072..de6168ce62 100644 --- a/libraries/AP_AccelCal/AP_AccelCal.h +++ b/libraries/AP_AccelCal/AP_AccelCal.h @@ -5,7 +5,8 @@ #ifndef HAL_INS_ACCELCAL_ENABLED #if HAL_GCS_ENABLED -#define HAL_INS_ACCELCAL_ENABLED 1 +#include +#define HAL_INS_ACCELCAL_ENABLED AP_INERTIALSENSOR_ENABLED #else #define HAL_INS_ACCELCAL_ENABLED 0 #endif