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

Add HE2410 & HE2411 battery support (#119) #121

Merged
merged 1 commit into from
Jan 14, 2025
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,40 @@ class HE2613(LiION):
[29.40, 1.0],
]

class HE2411(LiION):
CAPACITY = 11.6
VOLTAGE = 25.3
LUT = [
[21.00, 0.0],
[21.84, 0.1],
[22.68, 0.2],
[23.52, 0.3],
[24.36, 0.4],
[25.20, 0.5],
[26.04, 0.6],
[26.88, 0.7],
[27.72, 0.8],
[28.56, 0.9],
[29.40, 1.0],
]

class HE2410(LiION):
CAPACITY = 9.8
VOLTAGE = 25.3
LUT = [
[21.00, 0.0],
[21.84, 0.1],
[22.68, 0.2],
[23.52, 0.3],
[24.36, 0.4],
[25.20, 0.5],
[26.04, 0.6],
[26.88, 0.7],
[27.72, 0.8],
[28.56, 0.9],
[29.40, 1.0],
]

class ES20_12C(SLA):
CAPACITY = 20.0
VOLTAGE = 12.0
Expand Down Expand Up @@ -309,6 +343,8 @@ class DTM8A31(SLA):
# Match battery name to class
BATTERIES = {
BatteryConfig.HE2613: HE2613,
BatteryConfig.HE2411: HE2411,
BatteryConfig.HE2410: HE2410,
BatteryConfig.ES20_12C: ES20_12C,
BatteryConfig.U1_35: U1_35,
BatteryConfig.TLV1222: TLV1222,
Expand Down
Loading