From f7a4ab77c567394b912e921bc283ea5287faaa52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Sch=C3=A4fer?= Date: Sat, 28 Nov 2026 12:10:21 -0600 Subject: [PATCH] Remove unused longitudinal maneuver setup (#39102) --- .../test/longitudinal_maneuvers/plant.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/openpilot/selfdrive/test/longitudinal_maneuvers/plant.py b/openpilot/selfdrive/test/longitudinal_maneuvers/plant.py index 239910455d..90f20c276b 100755 --- a/openpilot/selfdrive/test/longitudinal_maneuvers/plant.py +++ b/openpilot/selfdrive/test/longitudinal_maneuvers/plant.py @@ -109,7 +109,6 @@ class Plant: car_state.carState.vCruise = float(v_cruise * 3.6) car_control.carControl.orientationNED = [0., float(pitch), 0.] - # ******** get controlsState messages for plotting *** sm = {'radarState': radar.radarState, 'carState': car_state.carState, 'carControl': car_control.carControl, @@ -127,26 +126,11 @@ class Plant: self.distance_lead = self.distance_lead + v_lead * self.ts # ******** run the car ******** - #print(self.distance, speed) if self.speed <= 0: self.speed = 0 self.acceleration = 0 self.distance = self.distance + self.speed * self.ts - # *** radar model *** - if self.lead_relevancy: - d_rel = np.maximum(0., self.distance_lead - self.distance) - v_rel = v_lead - self.speed - else: - d_rel = 200. - v_rel = 0. - - # print at 5hz - # if (self.rk.frame % (self.rate // 5)) == 0: - # print("%2.2f sec %6.2f m %6.2f m/s %6.2f m/s2 lead_rel: %6.2f m %6.2f m/s" - # % (self.current_time, self.distance, self.speed, self.acceleration, d_rel, v_rel)) - - # ******** update prevs ******** self.frame += 1