Revert "revert changes to standstill logic"

This reverts commit d737d858e7708aedaf09cfc068b85398161e9bbe.
pull/22407/head
Willem Melching 4 years ago
parent 86d3910f59
commit 364184ab4c
  1. 6
      selfdrive/car/honda/carcontroller.py

@ -162,10 +162,8 @@ class CarController():
can_sends.append(hondacan.create_steering_control(self.packer, apply_steer, can_sends.append(hondacan.create_steering_control(self.packer, apply_steer,
lkas_active, CS.CP.carFingerprint, idx, CS.CP.openpilotLongitudinalControl)) lkas_active, CS.CP.carFingerprint, idx, CS.CP.openpilotLongitudinalControl))
# stopping = actuators.longControlState == LongCtrlState.stopping stopping = actuators.longControlState == LongCtrlState.stopping
# starting = actuators.longControlState == LongCtrlState.starting starting = actuators.longControlState == LongCtrlState.starting
stopping = accel < 0 and CS.out.vEgo < 0.3
starting = accel > 0 and CS.out.vEgo < 0.3
# Prevent rolling backwards # Prevent rolling backwards
accel = -4.0 if stopping else accel accel = -4.0 if stopping else accel

Loading…
Cancel
Save