|
|
@ -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 |
|
|
|