From 16b6534e083e63e610d9d8d9173ddf2a44944479 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 19 May 2024 14:04:17 +0100 Subject: [PATCH] AP_BattMonitor: FuelLevel_Ananlog: set has_current true so capacity is reported --- libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h b/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h index 5f3e0530c40cb..bba898860e536 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h @@ -40,8 +40,8 @@ class AP_BattMonitor_FuelLevel_Analog : public AP_BattMonitor_Backend // returns true if battery monitor provides consumed energy info bool has_consumed_energy() const override { return true; } - // returns true if battery monitor provides current info - bool has_current() const override { return false; } + // returns true if battery monitor provides current info (or capacity) + bool has_current() const override { return true; } void init(void) override {}