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:
parent
517c331dd4
commit
d5a77fb525
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user