This commit is contained in:
firestar5683
2026-02-26 14:45:48 -06:00
parent d62d7dd9fc
commit 77ffd98a1a
+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 0xBE brake source; no fallback path.
if self.CP.carFingerprint == CAR.CHEVROLET_VOLT_ASCM:
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: