Skip to content

Commit 5d5611c

Browse files
committed
Sub: Don't send battery percent remaining estimate
1 parent 422c10c commit 5d5611c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ArduSub/GCS_Mavlink.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ NOINLINE void Sub::send_extended_status1(mavlink_channel_t chan)
205205
int8_t battery_remaining = -1;
206206

207207
if (battery.has_current() && battery.healthy()) {
208-
battery_remaining = battery.capacity_remaining_pct();
208+
// percent remaining is not necessarily accurate at the moment
209+
//battery_remaining = battery.capacity_remaining_pct();
209210
battery_current = battery.current_amps() * 100;
210211
}
211212

0 commit comments

Comments
 (0)