Copter: Send a heartbeat on mode change

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

View File

@ -237,6 +237,7 @@ bool Copter::set_mode(control_mode_t mode, mode_reason_t reason)
control_mode = mode;
control_mode_reason = reason;
logger.Write_Mode(control_mode, reason);
gcs().send_message(MSG_HEARTBEAT);
#if ADSB_ENABLED == ENABLED
adsb.set_is_auto_mode((mode == AUTO) || (mode == RTL) || (mode == GUIDED));