cleanup PlatformConfig (#31551)

cleanup
old-commit-hash: 73a497ded8b4ae7f1e2d3b5a7c4a2f57c748ff1c
This commit is contained in:
Justin Newberry
2024-02-22 20:49:27 -05:00
committed by GitHub
parent 27ac28a55f
commit 3d5b7dadaf
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -78,6 +78,7 @@ def scale_tire_stiffness(mass, wheelbase, center_to_front, tire_stiffness_factor
DbcDict = Dict[str, str]
def dbc_dict(pt_dbc, radar_dbc, chassis_dbc=None, body_dbc=None) -> DbcDict:
return {'pt': pt_dbc, 'radar': radar_dbc, 'chassis': chassis_dbc, 'body': body_dbc}
@@ -245,6 +246,7 @@ class CanSignalRateCalculator:
CarInfos = Union[CarInfo, List[CarInfo]]
@dataclass(order=True)
class PlatformConfig:
platform_str: str
+2 -2
View File
@@ -109,7 +109,7 @@ class CAR(Platforms):
"SUBARU LEGACY 7TH GEN",
SubaruCarInfo("Subaru Legacy 2020-22", "All", car_parts=CarParts.common([CarHarness.subaru_b])),
)
IMPREZA= SubaruPlatformConfig(
IMPREZA = SubaruPlatformConfig(
"SUBARU IMPREZA LIMITED 2019",
[
SubaruCarInfo("Subaru Impreza 2017-19"),
@@ -162,7 +162,7 @@ class CAR(Platforms):
dbc_dict('subaru_outback_2019_generated', None),
)
# Angle LKAS
FORESTER_2022= SubaruPlatformConfig(
FORESTER_2022 = SubaruPlatformConfig(
"SUBARU FORESTER 2022",
SubaruCarInfo("Subaru Forester 2022-24", "All", car_parts=CarParts.common([CarHarness.subaru_c])),
)