Skip to content

Commit

Permalink
Fix TSS2 creep issue, no need to send standstill request (#2716)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
briskspirit authored Dec 17, 2020
1 parent 89a6008 commit d93f07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/toyota/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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
Expand Down Expand Up @@ -84,7 +84,7 @@ def update(self, enabled, CS, frame, actuators, pcm_cancel_cmd, hud_alert,
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
Expand Down

0 comments on commit d93f07f

Please sign in to comment.