planner: fix undeclared variable (#26468)

* undeclared variable

* run first second disabled

* revert test

* rev
pull/26470/head^2
Shane Smiskol 2 years ago committed by GitHub
parent 714ab491b0
commit 98206fb92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/controls/lib/longitudinal_planner.py

@ -107,6 +107,7 @@ class LongitudinalPlanner:
accel_limits = [A_CRUISE_MIN, get_max_accel(v_ego)] accel_limits = [A_CRUISE_MIN, get_max_accel(v_ego)]
accel_limits_turns = limit_accel_in_turns(v_ego, sm['carState'].steeringAngleDeg, accel_limits, self.CP) accel_limits_turns = limit_accel_in_turns(v_ego, sm['carState'].steeringAngleDeg, accel_limits, self.CP)
else: else:
accel_limits = [MIN_ACCEL, MAX_ACCEL]
accel_limits_turns = [MIN_ACCEL, MAX_ACCEL] accel_limits_turns = [MIN_ACCEL, MAX_ACCEL]
if reset_state: if reset_state:

Loading…
Cancel
Save