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 (#110) #111

Merged
merged 4 commits into from
Jan 14, 2025
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
6 changes: 6 additions & 0 deletions clearpath_config/platform/battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class BatteryConfig(BaseConfig):
ES20_12C = 'ES20_12C'
# A200/J100 LiION
HE2613 = 'HE2613'
HE2411 = 'HE2411'
HE2410 = 'HE2410'
# A300 LiFEPO4
S_24V20_U1 = 'S_24V20_U1'
# R100 Lead Acid
Expand Down Expand Up @@ -76,6 +78,8 @@ class BatteryConfig(BaseConfig):
Platform.A200: {
ES20_12C: [S2P1],
HE2613: [S1P3, S1P4],
HE2411: [S1P3, S1P4],
HE2410: [S1P3, S1P4],
},
Platform.A300: {
S_24V20_U1: [S1P2, S1P4, S1P6],
Expand All @@ -98,6 +102,8 @@ class BatteryConfig(BaseConfig):
},
Platform.J100: {
HE2613: [S1P1],
HE2411: [S1P1],
HE2410: [S1P1],
},
Platform.R100: {
DTM8A31: [S1P2],
Expand Down
1 change: 1 addition & 0 deletions clearpath_config/platform/can.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def interface(self, interface: str) -> None:
class CANBridgeListConfig(ListConfig[CANBridge, str]):

def __init__(self) -> None:

super().__init__(
uid=lambda obj: obj.interface,
obj_type=CANBridge,
Expand Down
Loading