From b38d23d54277e5923e5bd100b2eb7ed748cb5e67 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 2 May 2018 18:10:42 +1000 Subject: [PATCH] Rover: move sending of battery data up --- APMrover2/GCS_Mavlink.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/APMrover2/GCS_Mavlink.cpp b/APMrover2/GCS_Mavlink.cpp index 0dbb53dc7d..dc872c3d8f 100644 --- a/APMrover2/GCS_Mavlink.cpp +++ b/APMrover2/GCS_Mavlink.cpp @@ -388,9 +388,6 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id) rover.send_fence_status(chan); break; - case MSG_BATTERY2: - CHECK_PAYLOAD_SIZE(BATTERY2); - send_battery2(rover.battery); break; case MSG_EKF_STATUS_REPORT: @@ -405,10 +402,6 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id) rover.send_pid_tuning(chan); break; - case MSG_BATTERY_STATUS: - send_battery_status(rover.battery); - break; - default: return GCS_MAVLINK::try_send_message(id); }