Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
haraschax committed Nov 28, 2024
1 parent cd8adeb commit c428409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/longitudinal_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def publish(self, sm, pm):

a_target, should_stop = get_accel_from_plan(self.CP, longitudinalPlan.speeds, longitudinalPlan.accels)
if self.mode == 'blended':
a_target_e2e, should_stop_e2e = get_accel_from_plan(self.CP, sm['modelV2'].velocity.x, sm['modelV2'].acceleration.x)
a_target_e2e, should_stop_e2e = get_accel_from_plan(self.CP, list(sm['modelV2'].velocity.x)[:CONTROL_N], list(sm['modelV2'].acceleration.x)[:CONTROL_N])
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 c428409

Please sign in to comment.