Browse Source

Plane: enable failsafe battery reporting

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
95a696ea36
  1. 1
      ArduPlane/ArduPlane.pde
  2. 1
      ArduPlane/events.pde

1
ArduPlane/ArduPlane.pde

@ -741,6 +741,7 @@ void setup() { @@ -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);

1
ArduPlane/events.pde

@ -112,6 +112,7 @@ void low_battery_event(void) @@ -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;
}
////////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save