Plane: Send a heartbeat on mode change

This commit is contained in:
Michael du Breuil 2019-06-26 11:21:48 -07:00 committed by Tom Pittenger
parent 242096b65e
commit 39c35814ec
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@ bool Plane::set_mode(Mode &new_mode, const mode_reason_t reason)
// log and notify mode change
logger.Write_Mode(control_mode->mode_number(), control_mode_reason);
notify_mode(*control_mode);
gcs().send_message(MSG_HEARTBEAT);
return true;
}