1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1009 prevent gyro zeroing from raise an alarm when arming

This commit is contained in:
Alessio Morale 2013-06-15 17:28:30 +02:00
parent 517c331dd4
commit d5a77fb525

View File

@ -638,7 +638,7 @@ static int32_t updateAttitudeComplementary(bool first_run)
}
}
if (!init) {
if (!init && flightStatus.Armed == FLIGHTSTATUS_ARMED_DISARMED) {
AlarmsSet(SYSTEMALARMS_ALARM_ATTITUDE, SYSTEMALARMS_ALARM_ERROR);
} else if (variance_error) {
AlarmsSet(SYSTEMALARMS_ALARM_ATTITUDE, SYSTEMALARMS_ALARM_CRITICAL);