Rover: Send a heartbeat on mode change

This commit is contained in:
Michael du Breuil 2019-06-26 11:21:05 -07:00 committed by Tom Pittenger
parent 67898d7320
commit 06e7120b4b
1 changed files with 1 additions and 0 deletions

View File

@ -268,6 +268,7 @@ bool Rover::set_mode(Mode &new_mode, mode_reason_t reason)
control_mode_reason = reason;
logger.Write_Mode(control_mode->mode_number(), control_mode_reason);
gcs().send_message(MSG_HEARTBEAT);
notify_mode(control_mode);
return true;