mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 18:12:05 +08:00
EAC_INHIBITED is not an actual error, when this is removed all "LKAS fault" errors are fixed. (#21469)
old-commit-hash: d4713946f234a302f939d5a8e23659ad384e31e8
This commit is contained in:
@@ -42,7 +42,7 @@ class CarState(CarStateBase):
|
||||
ret.steeringRateDeg = -cp.vl["STW_ANGLHP_STAT"]["StW_AnglHP_Spd"] # This is from a different angle sensor, and at different rate
|
||||
ret.steeringTorque = -cp.vl["EPAS_sysStatus"]["EPAS_torsionBarTorque"]
|
||||
ret.steeringPressed = (self.hands_on_level > 0)
|
||||
ret.steerError = steer_status in ["EAC_FAULT", "EAC_INHIBITED"]
|
||||
ret.steerError = steer_status == "EAC_FAULT"
|
||||
ret.steerWarning = self.steer_warning in ["EAC_ERROR_MAX_SPEED", "EAC_ERROR_MIN_SPEED", "EAC_ERROR_TMP_FAULT", "SNA"] # TODO: not sure if this list is complete
|
||||
|
||||
# Cruise state
|
||||
|
||||
Reference in New Issue
Block a user