Skip to content

Commit

Permalink
Add HE2410 & HE2411 battery support (#110) (#111)
Browse files Browse the repository at this point in the history
* Add support for the HE2410 and HE2411 batteries to J100 and A200
  • Loading branch information
civerachb-cpr authored Jan 14, 2025
1 parent bc7aa89 commit ee84ecb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit ee84ecb

Please sign in to comment.