Sub: Send a heartbeat on mode change

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

View File

@ -71,6 +71,7 @@ bool Sub::set_mode(control_mode_t mode, mode_reason_t reason)
control_mode = mode;
control_mode_reason = reason;
logger.Write_Mode(control_mode, control_mode_reason);
gcs().send_message(MSG_HEARTBEAT);
// update notify object
notify_flight_mode(control_mode);