Ford: log traction control status (#31424)

* not sure which to use

* cluster changes a bit earlier andis already used for nonAdaptive
old-commit-hash: cabde52ac6124ac2ae4259a51bc67dc1e3769bec
This commit is contained in:
Shane Smiskol
2024-02-12 21:20:49 -06:00
committed by GitHub
parent 71ad682759
commit fd90b74ea1
+1 -1
View File
@@ -54,7 +54,7 @@ class CarState(CarStateBase):
ret.steeringPressed = self.update_steering_pressed(abs(ret.steeringTorque) > CarControllerParams.STEER_DRIVER_ALLOWANCE, 5)
ret.steerFaultTemporary = cp.vl["EPAS_INFO"]["EPAS_Failure"] == 1
ret.steerFaultPermanent = cp.vl["EPAS_INFO"]["EPAS_Failure"] in (2, 3)
# ret.espDisabled = False # TODO: find traction control signal
ret.espDisabled = cp.vl["Cluster_Info1_FD1"]["DrvSlipCtlMde_D_Rq"] != 0 # 0 is default mode
if self.CP.carFingerprint in CANFD_CAR:
# this signal is always 0 on non-CAN FD cars