diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.h b/libraries/AP_InertialSensor/AP_InertialSensor.h index a092e17f9631e..30e60bec6c231 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.h +++ b/libraries/AP_InertialSensor/AP_InertialSensor.h @@ -741,7 +741,9 @@ class AP_InertialSensor : AP_AccelCal_Client bool _startup_error_counts_set; uint32_t _startup_ms; +#if AP_INERTIALSENSOR_KILL_IMU_ENABLED uint8_t imu_kill_mask; +#endif #if HAL_INS_TEMPERATURE_CAL_ENABLE public: diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_Backend.cpp b/libraries/AP_InertialSensor/AP_InertialSensor_Backend.cpp index 79d36134f9496..bef05d69ab01c 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_Backend.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor_Backend.cpp @@ -164,7 +164,7 @@ void AP_InertialSensor_Backend::_rotate_and_correct_gyro(uint8_t instance, Vecto */ void AP_InertialSensor_Backend::_publish_gyro(uint8_t instance, const Vector3f &gyro) /* front end */ { - if ((1U<