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: d93f07f5e6d550731b024521a2bda33325bcc640
This commit is contained in:
Igor
2020-12-16 20:40:52 -05:00
committed by GitHub
parent aa326065b8
commit c1a73f6836
+2 -2
View File
@@ -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, \
create_accel_command, create_acc_cancel_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
VisualAlert = car.CarControl.HUDControl.VisualAlert
@@ -84,7 +84,7 @@ class CarController():
pcm_cancel_cmd = 1
# 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
if CS.pcm_acc_status != 8:
# pcm entered standstill or it's disabled