mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-08 15:12:10 +08:00
cleanup PlatformConfig (#31551)
cleanup old-commit-hash: 73a497ded8b4ae7f1e2d3b5a7c4a2f57c748ff1c
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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])),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user