Mazda: Fix steer lockout issue in CX-9 2021 (#22506)

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
pull/22497/head^2
Jafar Al-Gharaibeh 4 years ago committed by GitHub
parent 2dff0597b7
commit d19ac7e49b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/car/mazda/carstate.py

@ -78,8 +78,8 @@ class CarState(CarStateBase):
self.low_speed_lockout = False self.low_speed_lockout = False
self.low_speed_alert = False self.low_speed_alert = False
# On if no driver torque the last 5 seconds # Check if LKAS is disabled due to lack of driver torque
ret.steerWarning = cp.vl["STEER_RATE"]["HANDS_OFF_5_SECONDS"] == 1 ret.steerWarning = (cp.vl["STEER_RATE"]["HANDS_OFF_5_SECONDS"] == 1) and (cp.vl["STEER_RATE"]["LKAS_BLOCK"] == 1)
self.acc_active_last = ret.cruiseState.enabled self.acc_active_last = ret.cruiseState.enabled

Loading…
Cancel
Save