Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_BattMonitor:remove unused param from analog fuel level #25584

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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