Skip to content

Commit

Permalink
PARAMS : fix param_check.py errors for BATT
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradeep-Carbonix committed Nov 7, 2024
1 parent 1e26326 commit aea7288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions libraries/AP_BattMonitor/AP_BattMonitor_FuelLevel_Analog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,36 +55,36 @@ const AP_Param::GroupInfo AP_BattMonitor_FuelLevel_Analog::var_info[] = {
// @Param: FL_PIN
// @DisplayName: Fuel level analog pin number
// @Description: Analog input pin that fuel level sensor is connected to. Airspeed ports can be used for Analog input. When using analog pin 103, the maximum value of the input in 3.3V.
// @Values: -1:Not Used,11:Pixracer,13:Pixhawk ADC4,14:Pixhawk ADC3,15:Pixhawk ADC6/Pixhawk2 ADC,103:Pixhawk SBUS
// @Values: -1:Not Used,8:CPN ADC,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),

// index 44 unused and available

// @Param: FL_FF
// @DisplayName: First order term
// @Description: First order polynomial fit term
// @Range: 0 10
// @Range: -10 10
// @User: Advanced
AP_GROUPINFO("FL_FF", 45, AP_BattMonitor_FuelLevel_Analog, _fuel_fit_first_order_coeff, 1),

// @Param: FL_FS
// @DisplayName: Second order term
// @Description: Second order polynomial fit term
// @Range: 0 10
// @Range: -10 10
// @User: Advanced
AP_GROUPINFO("FL_FS", 46, AP_BattMonitor_FuelLevel_Analog, _fuel_fit_second_order_coeff, 0),

// @Param: FL_FT
// @DisplayName: Third order term
// @Description: Third order polynomial fit term
// @Range: 0 10
// @Range: -10 10
// @User: Advanced
AP_GROUPINFO("FL_FT", 47, AP_BattMonitor_FuelLevel_Analog, _fuel_fit_third_order_coeff, 0),

// @Param: FL_OFF
// @DisplayName: Offset term
// @Description: Offset polynomial fit term
// @Range: 0 10
// @Range: -10 10
// @User: Advanced
AP_GROUPINFO("FL_OFF", 48, AP_BattMonitor_FuelLevel_Analog, _fuel_fit_offset, 0),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ RNGFND1_MAX_CM 15800
RNGFND1_GNDCLEAR 0 # DISABLE_CHECKS: 0 means the CPN reports the raw reading and the autopilot uses its own GNDCLEAR parameter
BATT_MONITOR 24
BATT_SERIAL_NUM 1
BATT_FL_VLT_MIN 0.0
BATT_FL_VLT_MIN 0.5
BATT_FL_V_MULT 1.0
BATT_FL_FLTR 0.3
BATT_FL_PIN 8
BATT_FL_VLT_MAX 8.2
BATT_FL_FF 1.0015
BATT_FL_FS 0.2419
BATT_FL_FT -0.0213
Expand Down

0 comments on commit aea7288

Please sign in to comment.