Mazda: disable hud alerts until we find a way to silence audible alerts (#22808)

* Mazda: disable hud alerts for now until we find a way to silence audible warnings

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Mazda: add hud alert for steer lockout

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* show when above min steer speed

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
pull/22840/head
Jafar Al-Gharaibeh 4 years ago committed by GitHub
parent ed735ba05e
commit 2621e5301d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/car/mazda/carcontroller.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -50,6 +50,8 @@ class CarController():
if frame % 50 == 0: if frame % 50 == 0:
ldw = c.hudControl.visualAlert == VisualAlert.ldw ldw = c.hudControl.visualAlert == VisualAlert.ldw
steer_required = c.hudControl.visualAlert == VisualAlert.steerRequired steer_required = c.hudControl.visualAlert == VisualAlert.steerRequired
# TODO: find a way to silence audible warnings so we can add more hud alerts
steer_required = steer_required and CS.lkas_allowed_speed
can_sends.append(mazdacan.create_alert_command(self.packer, CS.cam_laneinfo, ldw, steer_required)) can_sends.append(mazdacan.create_alert_command(self.packer, CS.cam_laneinfo, ldw, steer_required))
# send steering command # send steering command

@ -1 +1 @@
0caad1211b58557625231e54a1329be3e8da668f 72bf5e2fc5628714a9bbb7cc641954735264f022
Loading…
Cancel
Save