1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Only declare attitudeIsEstablished is USE_ACC is defined

This commit is contained in:
Steve Evans 2022-10-29 18:44:47 +01:00
parent 42f5f7caed
commit 587491ddbd

View file

@ -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;