mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fix imuComputeQuaternionFromRPY warning. (#9304)
Fix imuComputeQuaternionFromRPY warning.
This commit is contained in:
commit
5812d6291c
1 changed files with 2 additions and 0 deletions
|
@ -440,6 +440,7 @@ static float imuCalcKpGain(timeUs_t currentTimeUs, bool useAcc, float *gyroAvera
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if defined(USE_GPS)
|
||||
static void imuComputeQuaternionFromRPY(quaternionProducts *quatProd, int16_t initialRoll, int16_t initialPitch, int16_t initialYaw)
|
||||
{
|
||||
if (initialRoll > 1800) {
|
||||
|
@ -484,6 +485,7 @@ static void imuComputeQuaternionFromRPY(quaternionProducts *quatProd, int16_t in
|
|||
|
||||
attitudeIsEstablished = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void imuCalculateEstimatedAttitude(timeUs_t currentTimeUs)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue