From 5d5611c5778b771b2e7cba1050fbdf60f21795bc Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Wed, 22 Feb 2017 15:27:24 -0500 Subject: [PATCH] Sub: Don't send battery percent remaining estimate --- ArduSub/GCS_Mavlink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index fef74a54d8449..34b094a816e69 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -205,7 +205,8 @@ NOINLINE void Sub::send_extended_status1(mavlink_channel_t chan) int8_t battery_remaining = -1; if (battery.has_current() && battery.healthy()) { - battery_remaining = battery.capacity_remaining_pct(); + // percent remaining is not necessarily accurate at the moment + //battery_remaining = battery.capacity_remaining_pct(); battery_current = battery.current_amps() * 100; }