Toyota: don't send UI on Prius V (#25036)

* Toyota: don't send UI on Prius V

* Update selfdrive/car/toyota/carcontroller.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 98676fb3b05630bf6e62b0a1fbfc8804948a578c
This commit is contained in:
cydia2020
2022-07-15 04:34:27 +10:00
committed by GitHub
parent a613ca3f95
commit 8a4bbac798
+1 -1
View File
@@ -126,7 +126,7 @@ class CarController:
# forcing the pcm to disengage causes a bad fault sound so play a good sound instead
send_ui = True
if self.frame % 100 == 0 or send_ui:
if (self.frame % 100 == 0 or send_ui) and (self.CP.carFingerprint != CAR.PRIUS_V):
can_sends.append(create_ui_command(self.packer, steer_alert, pcm_cancel_cmd, hud_control.leftLaneVisible,
hud_control.rightLaneVisible, hud_control.leftLaneDepart,
hud_control.rightLaneDepart, CC.enabled))