Toyota: go into standstill if interceptor detected (#25024)

* Toyota: go into standstill if interceptor detected

* or
pull/25831/head
cydia2020 3 years ago committed by GitHub
parent aa0d128422
commit 407448bbfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/car/toyota/carcontroller.py

@ -81,7 +81,7 @@ class CarController:
pcm_cancel_cmd = 1
# on entering standstill, send standstill request
if CS.out.standstill and not self.last_standstill and self.CP.carFingerprint not in NO_STOP_TIMER_CAR:
if CS.out.standstill and not self.last_standstill and (self.CP.carFingerprint not in NO_STOP_TIMER_CAR or self.CP.enableGasInterceptor):
self.standstill_req = True
if CS.pcm_acc_status != 8:
# pcm entered standstill or it's disabled

Loading…
Cancel
Save