From 44bd77d49efc38080bc388b4faa6bd6b45cf857f 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 5f3e0530c4..bba898860e 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h @@ -40,8 +40,8 @@ public: // 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 {}