use it here

pull/28440/head
Shane Smiskol 2 years ago
parent 5d04bee89d
commit ca4841444b
  1. 2
      selfdrive/car/toyota/interface.py

@ -220,7 +220,7 @@ class CarInterface(CarInterfaceBase):
# cars w/ DSU disconnected. # cars w/ DSU disconnected.
# tss2 cars but ACC CMD is not coming from radar. # tss2 cars but ACC CMD is not coming from radar.
ret.openpilotLongitudinalControl = ret.enableDsu or candidate in (TSS2_CAR - RADAR_ACC_CAR) ret.openpilotLongitudinalControl = ret.enableDsu or candidate in (TSS2_CAR - RADAR_ACC_CAR)
if candidate in RADAR_ACC_CAR: if ret.radarUnavailable:
# On TSS2 radar-based ACC cars, the SDSU is a filter on the ACC_CONTROL message from the radar # On TSS2 radar-based ACC cars, the SDSU is a filter on the ACC_CONTROL message from the radar
ret.openpilotLongitudinalControl = ret.experimentalLongitudinalAvailable and experimental_long ret.openpilotLongitudinalControl = ret.experimentalLongitudinalAvailable and experimental_long
else: else:

Loading…
Cancel
Save