Skip to content

Commit

Permalink
AP_BattMonitor:remove unused param from analog fuel level
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg authored and peterbarker committed Nov 20, 2023
1 parent fc834ca commit 36a6642
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36a6642

Please sign in to comment.