better brake signal

This commit is contained in:
jakethesake420
2025-04-27 14:12:04 -05:00
committed by MoreTore
parent 53c6881c74
commit a2ce1288ec
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -197,6 +197,9 @@ BO_ 136 NEW_MSG_40: 8 XXX
SG_ NEW_SIGNAL_2 : 59|1@0+ (1,0) [0|1] "" XXX
SG_ NEW_SIGNAL_3 : 60|1@0+ (1,0) [0|1] "" XXX
BO_ 143 BRAKE_PEDAL: 4 XXX
SG_ BRAKE_PRESSED : 1|1@1+ (1,0) [0|3] "" XXX
BO_ 145 BLINK_INFO: 8 XXX
SG_ RIGHT_BLINK : 12|1@0+ (1,0) [0|3] "" XXX
SG_ LEFT_BLINK : 13|1@0+ (1,0) [0|3] "" XXX
@@ -545,7 +548,10 @@ BO_ 1067 NEW_MSG_33: 8 XXX
BO_ 1078 NEW_MSG_44: 8 XXX
SG_ IGNITION : 10|1@1+ (1,0) [0|255] "" XXX
BO_ 1087 BRAKE_PEDAL: 8 XXX
BO_ 1086 NEW_MSG_43E: 8 XXX
SG_ NEW_SIGNAL_1 : 39|16@0+ (1,0) [0|65535] "" XXX
BO_ 1087 BRAKE_PEDAL_SLOW: 8 XXX
SG_ NEW_SIGNAL_3 : 7|16@0+ (1,0) [0|65535] "" XXX
SG_ NEW_SIGNAL_4 : 23|16@0+ (1,0) [0|65535] "" XXX
SG_ NEW_SIGNAL_2 : 32|1@0+ (1,0) [0|1] "" XXX
+1 -1
View File
@@ -199,7 +199,7 @@ class CarState(CarStateBase):
ret.gasPressed = ret.gas > 0
ret.seatbeltUnlatched = False # Cruise will not engage if seatbelt is unlatched (handled by car)
ret.doorOpen = False # Cruise will not engage if door is open (handled by car)
ret.brakePressed = cp.vl["BRAKE_PEDAL"]["BRAKE_PEDAL_PRESSED"] == 1
ret.brakePressed = cp.vl["BRAKE_PEDAL"]["BRAKE_PRESSED"] == 1
ret.brake = .1
ret.steerFaultPermanent = False # TODO locate signal. Car shows light on dash if there is a fault
ret.steerFaultTemporary = False # TODO locate signal. Car shows light on dash if there is a fault