Ram 1500: more generic EPS steer to zero check (#27086)

more generic check
old-commit-hash: 4d231a9d96
beeps
Shane Smiskol 2 years ago committed by GitHub
parent 51148d7551
commit fbf2e53198
  1. 6
      selfdrive/car/chrysler/interface.py

@ -58,9 +58,9 @@ class CarInterface(CarInterfaceBase):
ret.mass = 2493. + STD_CARGO_KG ret.mass = 2493. + STD_CARGO_KG
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning) CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)
ret.minSteerSpeed = 14.5 ret.minSteerSpeed = 14.5
for fw in car_fw: # Older EPS FW allow steer to zero
if fw.ecu == 'eps' and fw.fwVersion.startswith((b"68312176", b"68273275")): if any(fw.ecu == 'eps' and fw.fwVersion[:4] <= b"6831" for fw in car_fw):
ret.minSteerSpeed = 0. ret.minSteerSpeed = 0.
elif candidate == CAR.RAM_HD: elif candidate == CAR.RAM_HD:
ret.steerActuatorDelay = 0.2 ret.steerActuatorDelay = 0.2

Loading…
Cancel
Save