Skip to content

Commit

Permalink
remove deprecated BAT_ params (#22872)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
sfuhrer authored Jun 14, 2024
1 parent f8a42bc commit f4e76cd
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ param set-default CBRK_SUPPLY_CHK 894281
# - without safety switch
param set-default CBRK_IO_SAFETY 22027

param set-default BAT_N_CELLS 3

param set-default SIH_T_MAX 6
param set-default SIH_MASS 0.3
param set-default SIH_IXX 0.00402
Expand Down
2 changes: 0 additions & 2 deletions ROMFS/px4fmu_common/init.d-posix/airframes/10042_sihsim_xvert
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ param set-default CBRK_SUPPLY_CHK 894281
# - without safety switch
param set-default CBRK_IO_SAFETY 22027

param set-default BAT_N_CELLS 3

param set-default SIH_T_MAX 2
param set-default SIH_Q_MAX 0.0165
param set-default SIH_MASS 0.2
Expand Down
2 changes: 0 additions & 2 deletions ROMFS/px4fmu_common/init.d/airframes/1101_rc_plane_sih.hil
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ param set-default CBRK_SUPPLY_CHK 894281
# - without safety switch
param set-default CBRK_IO_SAFETY 22027

param set-default BAT_N_CELLS 3

param set SIH_T_MAX 6
param set SIH_MASS 0.3
param set SIH_IXX 0.00402
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ param set-default CBRK_SUPPLY_CHK 894281
# - without safety switch
param set-default CBRK_IO_SAFETY 22027

param set-default BAT_N_CELLS 3

param set SIH_T_MAX 2.0
param set SIH_Q_MAX 0.0165
param set SIH_MASS 0.2
Expand Down
1 change: 0 additions & 1 deletion boards/sky-drones/smartap-airlink/init/rc.board_defaults
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ param set-default SENS_EN_THERMAL 1 # Enable heater
param set-default SENS_TEMP_ID 2359314 # Heated IMU ID

# Battery scaling
param set-default BAT_N_CELLS 4
param set-default BAT1_N_CELLS 4

param set-default BAT1_V_DIV 15.51
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/smart_battery/batmon/batmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ int Batmon::get_batmon_startup_info()
_cell_count = math::min((uint8_t)num_cells, (uint8_t)MAX_CELL_COUNT);

int32_t _num_cells = num_cells;
param_set(param_find("BAT_N_CELLS"), &_num_cells);
param_set(param_find("BAT1_N_CELLS"), &_num_cells);

return ret;
}
Expand Down
70 changes: 0 additions & 70 deletions src/lib/battery/battery_params_deprecated.c

This file was deleted.

4 changes: 0 additions & 4 deletions src/modules/mavlink/mavlink_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@ MavlinkParametersManager::send()
param_find("BAT_CRIT_THR");
param_find("BAT_EMERGEN_THR");
param_find("BAT_LOW_THR");
param_find("BAT_N_CELLS"); // deprecated
param_find("BAT_V_CHARGED"); // deprecated
param_find("BAT_V_EMPTY"); // deprecated
param_find("BAT_V_LOAD_DROP"); // deprecated
param_find("CAL_ACC0_ID");
param_find("CAL_GYRO0_ID");
param_find("CAL_MAG0_ID");
Expand Down

0 comments on commit f4e76cd

Please sign in to comment.