From ea89bd11789382f0c1302155d4595ee0562c6204 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Fri, 7 Apr 2017 13:14:11 -0700 Subject: [PATCH] Copter: Send BATTERY_STATUS --- ArduCopter/GCS_Mavlink.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index ff92f30c2e..569bf66af5 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -580,6 +580,9 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id) CHECK_PAYLOAD_SIZE(ADSB_VEHICLE); copter.adsb.send_adsb_vehicle(chan); break; + case MSG_BATTERY_STATUS: + send_battery_status(copter.battery); + break; } return true; @@ -773,6 +776,7 @@ GCS_MAVLINK_Copter::data_stream_send(void) send_message(MSG_TERRAIN); #endif send_message(MSG_BATTERY2); + send_message(MSG_BATTERY_STATUS); send_message(MSG_MOUNT_STATUS); send_message(MSG_OPTICAL_FLOW); send_message(MSG_GIMBAL_REPORT);