mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
General2
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user