Fix TSS2 creep issue, no need to send standstill request (#2716)

* Fix TSS2 creep issue, no need to send standstill request

* Forgot to add import

* Changed set to look in from TSS2_CAR to NO_STOP_TIMER_CAR
old-commit-hash: d93f07f5e6
commatwo_master
Igor 4 years ago committed by GitHub
parent aa326065b8
commit c1a73f6836
  1. 4
      selfdrive/car/toyota/carcontroller.py

@ -4,7 +4,7 @@ from selfdrive.car import apply_toyota_steer_torque_limits, create_gas_command,
from selfdrive.car.toyota.toyotacan import create_steer_command, create_ui_command, \ from selfdrive.car.toyota.toyotacan import create_steer_command, create_ui_command, \
create_accel_command, create_acc_cancel_command, \ create_accel_command, create_acc_cancel_command, \
create_fcw_command create_fcw_command
from selfdrive.car.toyota.values import Ecu, CAR, STATIC_MSGS, SteerLimitParams from selfdrive.car.toyota.values import Ecu, CAR, STATIC_MSGS, NO_STOP_TIMER_CAR, SteerLimitParams
from opendbc.can.packer import CANPacker from opendbc.can.packer import CANPacker
VisualAlert = car.CarControl.HUDControl.VisualAlert VisualAlert = car.CarControl.HUDControl.VisualAlert
@ -84,7 +84,7 @@ class CarController():
pcm_cancel_cmd = 1 pcm_cancel_cmd = 1
# on entering standstill, send standstill request # on entering standstill, send standstill request
if CS.out.standstill and not self.last_standstill: if CS.out.standstill and not self.last_standstill and CS.CP.carFingerprint not in NO_STOP_TIMER_CAR:
self.standstill_req = True self.standstill_req = True
if CS.pcm_acc_status != 8: if CS.pcm_acc_status != 8:
# pcm entered standstill or it's disabled # pcm entered standstill or it's disabled

Loading…
Cancel
Save