Copter: fill in flight mode in AP_Notify flags
needed for AP_Radio
This commit is contained in:
parent
ce0bcf1adc
commit
a26d19b57c
@ -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…
Reference in New Issue
Block a user