From dfa9e5ca5024fcb19a569444447bbfc92a46d96d Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Mon, 13 Jan 2025 14:54:33 -0500 Subject: [PATCH 1/3] Add support for the HE2411 battery to J100 and A200 --- clearpath_config/platform/battery.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clearpath_config/platform/battery.py b/clearpath_config/platform/battery.py index 9f9b120..3e14488 100644 --- a/clearpath_config/platform/battery.py +++ b/clearpath_config/platform/battery.py @@ -46,6 +46,7 @@ class BatteryConfig(BaseConfig): ES20_12C = "ES20_12C" # A200/J100 LiION HE2613 = "HE2613" + HE2411 = "HE2411" # R100 Lead Acid DTM8A31 = "8A31DTM" # W200 Lead Acid @@ -73,6 +74,7 @@ class BatteryConfig(BaseConfig): Platform.A200: { ES20_12C: [S2P1], HE2613: [S1P3, S1P4], + HE2411: [S1P3, S1P4], }, Platform.DD100: { TLV1222: [S1P1], @@ -92,6 +94,7 @@ class BatteryConfig(BaseConfig): }, Platform.J100: { HE2613: [S1P1], + HE2411: [S1P1], }, Platform.R100: { DTM8A31: [S1P2], From 6d078db743256f3af640dddd12f3e266ff808e7d Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Mon, 13 Jan 2025 17:02:44 -0500 Subject: [PATCH 2/3] Add the even-older HE2410 too --- clearpath_config/platform/battery.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clearpath_config/platform/battery.py b/clearpath_config/platform/battery.py index 3e14488..000ff10 100644 --- a/clearpath_config/platform/battery.py +++ b/clearpath_config/platform/battery.py @@ -47,6 +47,7 @@ class BatteryConfig(BaseConfig): # A200/J100 LiION HE2613 = "HE2613" HE2411 = "HE2411" + HE2411 = "HE2410" # R100 Lead Acid DTM8A31 = "8A31DTM" # W200 Lead Acid @@ -75,6 +76,7 @@ class BatteryConfig(BaseConfig): ES20_12C: [S2P1], HE2613: [S1P3, S1P4], HE2411: [S1P3, S1P4], + HE2410: [S1P3, S1P4], }, Platform.DD100: { TLV1222: [S1P1], @@ -95,6 +97,7 @@ class BatteryConfig(BaseConfig): Platform.J100: { HE2613: [S1P1], HE2411: [S1P1], + HE2410: [S1P1], }, Platform.R100: { DTM8A31: [S1P2], From c9ed0b2faaa3bbb9e886384f41a8982432505edf Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Mon, 13 Jan 2025 17:05:21 -0500 Subject: [PATCH 3/3] Typo --- clearpath_config/platform/battery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearpath_config/platform/battery.py b/clearpath_config/platform/battery.py index 000ff10..6c4e25e 100644 --- a/clearpath_config/platform/battery.py +++ b/clearpath_config/platform/battery.py @@ -47,7 +47,7 @@ class BatteryConfig(BaseConfig): # A200/J100 LiION HE2613 = "HE2613" HE2411 = "HE2411" - HE2411 = "HE2410" + HE2410 = "HE2410" # R100 Lead Acid DTM8A31 = "8A31DTM" # W200 Lead Acid