From 74fc7fbea5126145aa57a5f342d167f1a1fb2ac8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 9 Aug 2014 12:14:21 +1000 Subject: [PATCH] Plane: added 2nd battery monitoring support --- ArduPlane/GCS_Mavlink.pde | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 06c1c4155a..5206cf7f94 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -634,6 +634,11 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id) #endif break; + case MSG_BATTERY2: + CHECK_PAYLOAD_SIZE(BATTERY2); + gcs[chan-MAVLINK_COMM_0].send_battery2(battery); + break; + case MSG_WIND: CHECK_PAYLOAD_SIZE(WIND); send_wind(chan); @@ -870,6 +875,7 @@ GCS_MAVLINK::data_stream_send(void) #if AP_TERRAIN_AVAILABLE send_message(MSG_TERRAIN); #endif + send_message(MSG_BATTERY2); } }