diff --git a/src/main/flight/imu.c b/src/main/flight/imu.c index 33735d7c32..613c801cbf 100644 --- a/src/main/flight/imu.c +++ b/src/main/flight/imu.c @@ -99,7 +99,9 @@ static imuRuntimeConfig_t imuRuntimeConfig; float rMat[3][3]; +#if defined(USE_ACC) STATIC_UNIT_TESTED bool attitudeIsEstablished = false; +#endif // quaternion of sensor frame relative to earth frame STATIC_UNIT_TESTED quaternion q = QUATERNION_INITIALIZE;