INIT NOT UNINIT

pull/33449/head
Shane Smiskol 8 months ago committed by GitHub
parent 1cafc77610
commit ef269e35b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/controls/lib/longitudinal_planner.py

@ -101,7 +101,7 @@ class LongitudinalPlanner:
v_ego = sm['carState'].vEgo v_ego = sm['carState'].vEgo
v_cruise_kph = min(sm['carState'].vCruise, V_CRUISE_MAX) v_cruise_kph = min(sm['carState'].vCruise, V_CRUISE_MAX)
v_cruise = v_cruise_kph * CV.KPH_TO_MS v_cruise = v_cruise_kph * CV.KPH_TO_MS
v_cruise_initialized = sm['carState'].vCruise == V_CRUISE_UNSET v_cruise_initialized = sm['carState'].vCruise != V_CRUISE_UNSET
long_control_off = sm['controlsState'].longControlState == LongCtrlState.off long_control_off = sm['controlsState'].longControlState == LongCtrlState.off
force_slow_decel = sm['controlsState'].forceDecel force_slow_decel = sm['controlsState'].forceDecel

Loading…
Cancel
Save