mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 10:02:06 +08:00
Honda and Mazda Dashboard signals
Mazda CX-5 2017-21 Mazda CX-5 2022-25 Mazda CX-9 2016-20 Mazda CX-9 2021-23 Mazda 3 2017-18 Mazda 6 2017-20 The Mazda caveat worth noting: unlike Honda (where HAS_CAMERA_MESSAGES was already confirmed per-car), Mazda has no such gate — all six models will attempt to read CAM_TRAFFIC_SIGNS since it's registered with freq=0 Honda: limited to HONDA_CAMERA_MESSAGE_CARS, all radarless Bosch: Honda Accord 2018-22 (+ Accord Hybrid 2018-22, Inspire 2018) Honda Civic 2019-21 (+ Civic Hatchback 2017-21) Honda Civic 2022-24 (+ Civic Hatchback 2022-24, Civic Hybrid 2025-26, Civic Hatchback Hybrid 2023/2025-26) Honda CR-V 2017-22 Honda CR-V Hybrid 2017-22 Honda HR-V 2023-25 Honda Insight 2019-22 Not included (not in HONDA_CAMERA_MESSAGE_CARS): Accord 2023-25, CR-V 2023-26, Odyssey, Pilot, Passport, Acura RDX 3G, Acura TLX — those are either CANFD or use a different DBC and haven't been confirmed to publish CAMERA_MESSAGES
This commit is contained in:
@@ -235,6 +235,9 @@ class CarState(CarStateBase):
|
||||
fp_ret = custom.StarPilotCarState.new_message()
|
||||
|
||||
fp_ret.dashboardSpeedLimit = calculate_speed_limit(self.CP, self.FPCP, cp, cp_cam)
|
||||
if self.FPCP.flags & HondaStarPilotFlags.HAS_CAMERA_MESSAGES:
|
||||
sign_bus = cp if (self.CP.carFingerprint in (HONDA_BOSCH - HONDA_BOSCH_RADARLESS - HONDA_BOSCH_CANFD)) else cp_cam
|
||||
fp_ret.dashboardStopSign = 1 if sign_bus.vl["CAMERA_MESSAGES"]["ROAD_SIGN"] == 89 else 0
|
||||
|
||||
return ret, fp_ret
|
||||
|
||||
|
||||
@@ -118,11 +118,13 @@ class CarState(CarStateBase):
|
||||
|
||||
fp_ret = custom.StarPilotCarState.new_message()
|
||||
|
||||
fp_ret.dashboardStopSign = 1 if cp_cam.vl["CAM_TRAFFIC_SIGNS"]["STOP_SIGN"] == 9 else 0
|
||||
|
||||
return ret, fp_ret
|
||||
|
||||
@staticmethod
|
||||
def get_can_parsers(CP):
|
||||
return {
|
||||
Bus.pt: CANParser(DBC[CP.carFingerprint][Bus.pt], [], 0),
|
||||
Bus.cam: CANParser(DBC[CP.carFingerprint][Bus.pt], [], 2),
|
||||
Bus.cam: CANParser(DBC[CP.carFingerprint][Bus.pt], [("CAM_TRAFFIC_SIGNS", 0)], 2),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user