mirror of https://github.com/ArduPilot/ardupilot
Rover: assign notify is_autopilot_mode flag
This commit is contained in:
parent
1101cc05e6
commit
fe9a9479e6
|
@ -283,6 +283,7 @@ void Rover::startup_INS_ground(void)
|
|||
// update notify with mode change
|
||||
void Rover::notify_mode(const Mode *mode)
|
||||
{
|
||||
AP_Notify::flags.autopilot_mode = mode->is_autopilot_mode();
|
||||
notify.flags.flight_mode = mode->mode_number();
|
||||
notify.set_flight_mode_str(mode->name4());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue