mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-12 19:03:58 -04:00
Plane: enable failsafe battery reporting
This commit is contained in:
parent
ec0c894306
commit
95a696ea36
@ -741,6 +741,7 @@ void setup() {
|
|||||||
notify.init();
|
notify.init();
|
||||||
AP_Notify::flags.armed = true;
|
AP_Notify::flags.armed = true;
|
||||||
AP_Notify::flags.pre_arm_check = true;
|
AP_Notify::flags.pre_arm_check = true;
|
||||||
|
AP_Notify::flags.failsafe_battery = false;
|
||||||
|
|
||||||
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
|
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
|
||||||
|
|
||||||
|
@ -112,6 +112,7 @@ void low_battery_event(void)
|
|||||||
set_mode(RTL);
|
set_mode(RTL);
|
||||||
aparm.throttle_cruise.load();
|
aparm.throttle_cruise.load();
|
||||||
battery.low_batttery = true;
|
battery.low_batttery = true;
|
||||||
|
AP_Notify::flags.failsafe_battery = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user