From b850c1041f1a19486d360c870a088841df34fe31 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Fri, 7 Apr 2017 13:13:59 -0700 Subject: [PATCH] Plane: Send BATTERY_STATUS --- ArduPlane/GCS_Mavlink.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index b4552d5f7c..4bdcc0890c 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -684,6 +684,9 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id) CHECK_PAYLOAD_SIZE(ADSB_VEHICLE); plane.adsb.send_adsb_vehicle(chan); break; + case MSG_BATTERY_STATUS: + send_battery_status(plane.battery); + break; } return true; } @@ -895,6 +898,7 @@ GCS_MAVLINK_Plane::data_stream_send(void) send_message(MSG_MAG_CAL_REPORT); send_message(MSG_MAG_CAL_PROGRESS); send_message(MSG_BATTERY2); + send_message(MSG_BATTERY_STATUS); send_message(MSG_MOUNT_STATUS); send_message(MSG_OPTICAL_FLOW); send_message(MSG_EKF_STATUS_REPORT);