Skip to content

Commit

Permalink
GM: CAN parser cleanup, prep for Yukon (#1571)
Browse files Browse the repository at this point in the history
GM: Refactor and prep for Yukon
  • Loading branch information
jyoung8607 authored Dec 12, 2024
1 parent e9e6e33 commit be9a8f6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions opendbc/car/gm/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,24 +166,22 @@ def get_can_parsers(CP):
("ECMAcceleratorPos", 80),
]

if CP.transmissionType == TransmissionType.direct:
pt_messages.append(("EBCMRegenPaddle", 50))

if CP.enableBsm:
pt_messages.append(("BCMBlindSpotMonitor", 10))

# Used to read back last counter sent to PT by camera
cam_messages = []
if CP.networkLocation == NetworkLocation.fwdCamera:
pt_messages += [
("ASCMLKASteeringCmd", 0),
]

if CP.transmissionType == TransmissionType.direct:
pt_messages.append(("EBCMRegenPaddle", 50))

cam_messages = []
if CP.networkLocation == NetworkLocation.fwdCamera:
cam_messages += [
("ASCMLKASteeringCmd", 10),
("ASCMActiveCruiseControlStatus", 25),
]

if CP.carFingerprint not in SDGM_CAR:
cam_messages += [
("AEBCmd", 10),
Expand Down

0 comments on commit be9a8f6

Please sign in to comment.