Copter: reset battery_fs after dis/rearming

This commit is contained in:
Andre Kjellstrup 2014-09-17 12:28:02 +02:00 committed by Randy Mackay
parent bf1ccba742
commit be2f308802
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ static void init_arm_motors()
// disable inertial nav errors temporarily // disable inertial nav errors temporarily
inertial_nav.ignore_next_error(); inertial_nav.ignore_next_error();
// reset battery failsafe
set_failsafe_battery(false);
// notify that arming will occur (we do this early to give plenty of warning) // notify that arming will occur (we do this early to give plenty of warning)
AP_Notify::flags.armed = true; AP_Notify::flags.armed = true;
// call update_notify a few times to ensure the message gets out // call update_notify a few times to ensure the message gets out