Browse Source

Copter: fill in flight mode in AP_Notify flags

needed for AP_Radio
mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
a26d19b57c
  1. 1
      ArduCopter/mode.cpp

1
ArduCopter/mode.cpp

@ -234,6 +234,7 @@ void Copter::exit_mode(Copter::Mode *&old_flightmode, @@ -234,6 +234,7 @@ void Copter::exit_mode(Copter::Mode *&old_flightmode,
// notify_flight_mode - sets notify object based on current flight mode. Only used for OreoLED notify device
void Copter::notify_flight_mode() {
AP_Notify::flags.autopilot_mode = flightmode->is_autopilot();
AP_Notify::flags.flight_mode = control_mode;
notify.set_flight_mode_str(flightmode->name4());
}

Loading…
Cancel
Save