longcontrol: ignore cruise standstill if interceptor (#26597)

* ignore standstill

* cmt

* standstill

* rm cmt

* flip
old-commit-hash: a19b5b91d2
taco
Shane Smiskol 3 years ago committed by GitHub
parent f2e0b35e9e
commit db8028fa63
  1. 2
      selfdrive/controls/lib/longcontrol.py

@ -10,6 +10,8 @@ LongCtrlState = car.CarControl.Actuators.LongControlState
def long_control_state_trans(CP, active, long_control_state, v_ego, v_target,
v_target_1sec, brake_pressed, cruise_standstill):
# Ignore cruise standstill if car has a gas interceptor
cruise_standstill = cruise_standstill and not CP.enableGasInterceptor
accelerating = v_target_1sec > v_target
planned_stop = (v_target < CP.vEgoStopping and
v_target_1sec < CP.vEgoStopping and

Loading…
Cancel
Save