This commit is contained in:
firestar5683
2026-03-04 23:14:57 -06:00
parent c24dd3552c
commit cc700d9b81
+5 -1
View File
@@ -101,7 +101,11 @@ class CarState(CarStateBase):
no_accel_pos = bool(self.CP.flags & GMFlags.NO_ACCELERATOR_POS_MSG.value)
if no_accel_pos:
# Hardcode Volt ASCM to the brake-pedal source only when SASCM is not present.
if self.CP.carFingerprint == CAR.CHEVROLET_VOLT_ASCM and not (self.CP.flags & GMFlags.SASCM.value):
no_accel_pos = False
ret.brake = pt_cp.vl["EBCMBrakePedalPosition"]["BrakePedalPosition"]
elif no_accel_pos:
if self.CP.carFingerprint in kaofui_state_cars:
ret.brake = pt_cp.vl.get("EBCMBrakePedalPosition", {}).get("BrakePedalPosition", 0) / 0xd0
else: