Skip to content

Commit

Permalink
ekf_check: upon clearing EKF failsafe, do not automatically revert to…
Browse files Browse the repository at this point in the history
… LOITER if in a battery failsafe
Will Silva committed Oct 6, 2016
1 parent b3d46d4 commit dc68bb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ArduCopter/ekf_check.pde
Original file line number Diff line number Diff line change
@@ -182,7 +182,9 @@ static void failsafe_ekf_off_event(void)
if (failsafe.gps_glitch) {
gps_glitch_switch_mode_on_resolve = true;
} else {
set_mode(LOITER);
if (!failsafe.battery) {
set_mode(LOITER);
}
}
}
}

0 comments on commit dc68bb6

Please sign in to comment.