Skip to content

Commit 17f6ff2

Browse files
committed
feat(component_editor): Support 4.2 Li-Ion cells
1 parent e5df7d6 commit 17f6ff2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ardupilot_methodic_configurator/battery_cell_voltages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
battery_cell_voltages = {
1414
"LiIon": {
15-
"absolute_max": 4.1,
15+
"absolute_max": 4.2,
1616
"absolute_min": 2.5,
1717
"recommended_max": 4.1,
1818
"recommended_low": 3.1,

tests/test_battery_cell_voltages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_chemistries(self) -> None:
2323
assert chemistries == expected_chemistries
2424

2525
def test_limit_max_voltage(self) -> None:
26-
assert BatteryCell.limit_max_voltage("LiIon") == 4.1
26+
assert BatteryCell.limit_max_voltage("LiIon") == 4.2
2727
assert BatteryCell.limit_max_voltage("LipoHV") == 4.35
2828
assert BatteryCell.limit_max_voltage("NonExistentChemistry") == 4.45
2929

0 commit comments

Comments
 (0)