From 36a66424e1d6a1d7aac69c90d1613bd109a0abbd Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Mon, 20 Nov 2023 11:39:53 -0600 Subject: [PATCH] AP_BattMonitor:remove unused param from analog fuel level --- .../AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.cpp | 8 +------- .../AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.cpp b/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.cpp index 9739068b9179f..f1dfead2bba7b 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.cpp +++ b/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.cpp @@ -58,13 +58,7 @@ const AP_Param::GroupInfo AP_BattMonitor_FuelLevel_Analog::var_info[] = { // @Values: -1:Not Used,11:Pixracer,13:Pixhawk ADC4,14:Pixhawk ADC3,15:Pixhawk ADC6/Pixhawk2 ADC,103:Pixhawk SBUS AP_GROUPINFO("FL_PIN", 43, AP_BattMonitor_FuelLevel_Analog, _pin, -1), - // @Param: FL_VLT_MAX - // @DisplayName: Full fuel level voltage - // @Description: The voltage seen on the analog pin when the fuel tank is full. - // @Range: 0 10 - // @Units: V - // @User: Advanced - AP_GROUPINFO("FL_VLT_MAX", 44, AP_BattMonitor_FuelLevel_Analog, _fuel_level_max_voltage, -1), + // index 44 unused and available // @Param: FL_FF // @DisplayName: First order term diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h b/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h index 58b35002b2897..5f3e0530c40cb 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h @@ -48,7 +48,6 @@ class AP_BattMonitor_FuelLevel_Analog : public AP_BattMonitor_Backend private: AP_Float _fuel_level_empty_voltage; - AP_Float _fuel_level_max_voltage; AP_Float _fuel_level_voltage_mult; AP_Float _fuel_level_filter_frequency; AP_Int8 _pin;