Chrysler: add ACC fault signal (#24398)

* add accFaulted event for Chrysler

* add the signal

* no class variables

* available when not 1

* revert

* bump opendbc to master

* if not 0
old-commit-hash: 75efad52eabf008ad87337b1e5fadadaaf21756c
This commit is contained in:
Shane Smiskol
2022-05-07 01:00:43 -07:00
committed by GitHub
parent 3427eb411b
commit 785febb828
2 changed files with 3 additions and 1 deletions
+1 -1
Submodule opendbc updated: e19ba095c3...919154efe2
+2
View File
@@ -53,6 +53,7 @@ class CarState(CarStateBase):
ret.cruiseState.speed = cp.vl["DASHBOARD"]["ACC_SPEED_CONFIG_KPH"] * CV.KPH_TO_MS
# CRUISE_STATE is a three bit msg, 0 is off, 1 and 2 are Non-ACC mode, 3 and 4 are ACC mode, find if there are other states too
ret.cruiseState.nonAdaptive = cp.vl["DASHBOARD"]["CRUISE_STATE"] in (1, 2)
ret.accFaulted = cp.vl["ACC_2"]["ACC_FAULTED"] != 0
ret.steeringTorque = cp.vl["EPS_STATUS"]["TORQUE_DRIVER"]
ret.steeringTorqueEps = cp.vl["EPS_STATUS"]["TORQUE_MOTOR"]
@@ -93,6 +94,7 @@ class CarState(CarStateBase):
("STEERING_RATE", "STEERING"),
("TURN_SIGNALS", "STEERING_LEVERS"),
("ACC_STATUS_2", "ACC_2"),
("ACC_FAULTED", "ACC_2"),
("HIGH_BEAM_FLASH", "STEERING_LEVERS"),
("ACC_SPEED_CONFIG_KPH", "DASHBOARD"),
("CRUISE_STATE", "DASHBOARD"),