Copter: fill in flight mode in AP_Notify flags

needed for AP_Radio
This commit is contained in:
Andrew Tridgell 2018-01-06 16:53:48 +11:00
parent ce0bcf1adc
commit a26d19b57c

View File

@ -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());
}