mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 01:53:40 +08:00
Ford: set espActive from ABS active (#3909)
This commit is contained in:
committed by
firestar5683
parent
72930b3090
commit
38edf1828e
@@ -87,6 +87,8 @@ class CarState(CarStateBase):
|
||||
ret.steerFaultTemporary = cp.vl["EPAS_INFO"]["EPAS_Failure"] == 1
|
||||
ret.steerFaultPermanent = cp.vl["EPAS_INFO"]["EPAS_Failure"] in (2, 3)
|
||||
ret.espDisabled = cp.vl["Cluster_Info1_FD1"]["DrvSlipCtlMde_D_Rq"] != 0 # 0 is default mode
|
||||
# the PSCM stops lane assist (LaActAvail_D_Actl -> 0) when ABS is active
|
||||
ret.espActive = bool(cp.vl["DesiredTorqBrk"]["AbsActv_B_Actl"])
|
||||
|
||||
if self.CP.flags & FordFlags.CANFD:
|
||||
# this signal is always 0 on non-CAN FD cars
|
||||
|
||||
Reference in New Issue
Block a user