Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
haraschax committed Dec 19, 2024
1 parent d0eaa84 commit 9a1c08f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions selfdrive/controls/lib/longitudinal_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ def publish(self, sm, pm):
a_target, should_stop = get_accel_from_plan(longitudinalPlan.speeds, longitudinalPlan.accels,
action_t=action_t, vEgoStopping=self.CP.vEgoStopping)
if self.mode == 'blended':
a_target_e2e, should_stop_e2e = get_accel_from_plan(longitudinalPlan.speeds, longitudinalPlan.accels,
action_t=action_t, vEgoStopping=self.CP.vEgoStopping)
a_target_e2e, should_stop_e2e = get_accel_from_plan(list(sm['modelV2'].velocity.x)[:CONTROL_N],
list(sm['modelV2'].acceleration.x)[:CONTROL_N],
action_t=action_t, vEgoStopping=self.CP.vEgoStopping)
a_target = min(a_target, a_target_e2e)
should_stop = should_stop or should_stop_e2e
longitudinalPlan.aTarget = a_target
Expand Down

0 comments on commit 9a1c08f

Please sign in to comment.