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:
parent
4a1cdd7b5e
commit
7e88da2f06
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue