mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Only declare attitudeIsEstablished is USE_ACC is defined
This commit is contained in:
parent
42f5f7caed
commit
587491ddbd
1 changed files with 2 additions and 0 deletions
|
@ -99,7 +99,9 @@ static imuRuntimeConfig_t imuRuntimeConfig;
|
||||||
|
|
||||||
float rMat[3][3];
|
float rMat[3][3];
|
||||||
|
|
||||||
|
#if defined(USE_ACC)
|
||||||
STATIC_UNIT_TESTED bool attitudeIsEstablished = false;
|
STATIC_UNIT_TESTED bool attitudeIsEstablished = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
// quaternion of sensor frame relative to earth frame
|
// quaternion of sensor frame relative to earth frame
|
||||||
STATIC_UNIT_TESTED quaternion q = QUATERNION_INITIALIZE;
|
STATIC_UNIT_TESTED quaternion q = QUATERNION_INITIALIZE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue