From e22bda2527e48144a72f00c51a30966aa698bb4c Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Wed, 26 Jun 2019 11:21:56 -0700 Subject: [PATCH] Sub: Send a heartbeat on mode change --- ArduSub/flight_mode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduSub/flight_mode.cpp b/ArduSub/flight_mode.cpp index df14e2c681..d8368ac274 100644 --- a/ArduSub/flight_mode.cpp +++ b/ArduSub/flight_mode.cpp @@ -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);