From c42840935f019e290b68b7fbb12d2147dcede2ff Mon Sep 17 00:00:00 2001 From: Bruce Wayne Date: Wed, 27 Nov 2024 20:16:46 -0800 Subject: [PATCH] typo --- selfdrive/controls/lib/longitudinal_planner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/lib/longitudinal_planner.py b/selfdrive/controls/lib/longitudinal_planner.py index 3a91d4b83fc51a..1a9cbfc0900a12 100755 --- a/selfdrive/controls/lib/longitudinal_planner.py +++ b/selfdrive/controls/lib/longitudinal_planner.py @@ -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