Skip to content

Commit

Permalink
gps_glitch: upon clearing GPS glitch failsafe, do not automatically r…
Browse files Browse the repository at this point in the history
…evert to LOITER if in a battery failsafe
  • Loading branch information
wsilva32 committed Oct 6, 2016
1 parent dc68bb6 commit 3f9215e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ArduCopter/gps_glitch.pde
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ static void gps_glitch_off_event() {
Log_Write_Error(ERROR_SUBSYSTEM_FAILSAFE_GPS, ERROR_CODE_FAILSAFE_RESOLVED);

if (gps_glitch_switch_mode_on_resolve) {
set_mode(LOITER);
if (!failsafe.battery) {
set_mode(LOITER);
}
gps_glitch_switch_mode_on_resolve = false;
}
}

0 comments on commit 3f9215e

Please sign in to comment.