Tracker: Send a heartbeat on mode change

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

View File

@ -235,6 +235,7 @@ void Tracker::set_mode(enum ControlMode mode, mode_reason_t reason)
// log mode change // log mode change
logger.Write_Mode(control_mode, reason); logger.Write_Mode(control_mode, reason);
gcs().send_message(MSG_HEARTBEAT);
nav_status.bearing = ahrs.yaw_sensor * 0.01f; nav_status.bearing = ahrs.yaw_sensor * 0.01f;
} }