|
|
@ -109,6 +109,7 @@ class CarController: |
|
|
|
can_sends.append(create_gas_interceptor_command(self.packer, interceptor_gas_cmd, self.frame // 2)) |
|
|
|
can_sends.append(create_gas_interceptor_command(self.packer, interceptor_gas_cmd, self.frame // 2)) |
|
|
|
self.gas = interceptor_gas_cmd |
|
|
|
self.gas = interceptor_gas_cmd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.CP.carFingerprint != CAR.PRIUS_V: |
|
|
|
# ui mesg is at 1Hz but we send asap if: |
|
|
|
# ui mesg is at 1Hz but we send asap if: |
|
|
|
# - there is something to display |
|
|
|
# - there is something to display |
|
|
|
# - there is something to stop displaying |
|
|
|
# - there is something to stop displaying |
|
|
@ -124,7 +125,7 @@ class CarController: |
|
|
|
# forcing the pcm to disengage causes a bad fault sound so play a good sound instead |
|
|
|
# forcing the pcm to disengage causes a bad fault sound so play a good sound instead |
|
|
|
send_ui = True |
|
|
|
send_ui = True |
|
|
|
|
|
|
|
|
|
|
|
if (self.frame % 100 == 0 or send_ui) and (self.CP.carFingerprint != CAR.PRIUS_V): |
|
|
|
if self.frame % 100 == 0 or send_ui: |
|
|
|
can_sends.append(create_ui_command(self.packer, steer_alert, pcm_cancel_cmd, hud_control.leftLaneVisible, |
|
|
|
can_sends.append(create_ui_command(self.packer, steer_alert, pcm_cancel_cmd, hud_control.leftLaneVisible, |
|
|
|
hud_control.rightLaneVisible, hud_control.leftLaneDepart, |
|
|
|
hud_control.rightLaneVisible, hud_control.leftLaneDepart, |
|
|
|
hud_control.rightLaneDepart, CC.enabled)) |
|
|
|
hud_control.rightLaneDepart, CC.enabled)) |
|
|
|