Skip to content

Commit

Permalink
Fix TSS2 creep issue, no need to send standstill request (commaai#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
# Conflicts:
#	selfdrive/car/toyota/carcontroller.py
  • Loading branch information
briskspirit authored and sshane committed Dec 31, 2020
1 parent 1f87948 commit cda333f
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
from common.op_params import opParams

Expand Down Expand Up @@ -87,7 +87,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 and not self.standstill_hack:
if CS.out.standstill and not self.last_standstill and CS.CP.carFingerprint not in NO_STOP_TIMER_CAR and not self.standstill_hack:
self.standstill_req = True
if CS.pcm_acc_status != 8:
# pcm entered standstill or it's disabled
Expand Down

0 comments on commit cda333f

Please sign in to comment.