Plane: enable failsafe battery reporting

This commit is contained in:
Andrew Tridgell 2013-09-18 10:50:34 +10:00
parent ec0c894306
commit 95a696ea36
2 changed files with 2 additions and 0 deletions

View File

@ -741,6 +741,7 @@ void setup() {
notify.init();
AP_Notify::flags.armed = true;
AP_Notify::flags.pre_arm_check = true;
AP_Notify::flags.failsafe_battery = false;
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);

View File

@ -112,6 +112,7 @@ void low_battery_event(void)
set_mode(RTL);
aparm.throttle_cruise.load();
battery.low_batttery = true;
AP_Notify::flags.failsafe_battery = true;
}
////////////////////////////////////////////////////////////////////////////////