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>
old-commit-hash: 2621e5301da0e10a70a68672db5052ea5037db9b
This commit is contained in:
Jafar Al-Gharaibeh
2021-11-09 17:24:18 -06:00
committed by GitHub
parent 675f67b406
commit 6c74dc1366
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -50,6 +50,8 @@ class CarController():
if frame % 50 == 0:
ldw = c.hudControl.visualAlert == VisualAlert.ldw
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))
# send steering command
+1 -1
View File
@@ -1 +1 @@
0caad1211b58557625231e54a1329be3e8da668f
72bf5e2fc5628714a9bbb7cc641954735264f022