mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Make sensor calibration flags system STATEs; Check for calibration values for ACC and MAG; Block arming if calibration is not done for available sensor; Indicate ARMing blockers in armingFlags; Report armingFlags via MSP_STATUS_EX
This commit is contained in:
parent
6f17bdc146
commit
5e95d7d055
11 changed files with 282 additions and 269 deletions
|
@ -615,7 +615,7 @@ bool isImuReady(void)
|
|||
|
||||
bool isImuHeadingValid(void)
|
||||
{
|
||||
return (sensors(SENSOR_MAG) && persistentFlag(FLAG_MAG_CALIBRATION_DONE)) || (STATE(FIXED_WING) && gpsHeadingInitialized);
|
||||
return (sensors(SENSOR_MAG) && STATE(COMPASS_CALIBRATED)) || (STATE(FIXED_WING) && gpsHeadingInitialized);
|
||||
}
|
||||
|
||||
float calculateCosTiltAngle(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue