1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 09:45:33 +03:00

Post rebase fixup

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2016-11-15 20:19:22 +10:00
parent 4a1cdd7b5e
commit 7e88da2f06

View file

@ -425,7 +425,12 @@ static int imuCalculateAccelerometerConfidence(void)
static void imuCalculateEstimatedAttitude(float dT)
{
const bool canUseMAG = sensors(SENSOR_MAG) && isMagnetometerHealthy();
#if defined(MAG)
const bool canUseMAG = sensors(SENSOR_MAG) && isCompassHealthy();
#else
const bool canUseMAG = false;
#endif
const int accWeight = imuCalculateAccelerometerConfidence();
float courseOverGround = 0;