Revert "not used for now"

This reverts commit f0083d6241.
This commit is contained in:
Jason Wen
2025-08-30 22:40:49 -04:00
parent f0083d6241
commit 22fd56e32e
2 changed files with 3 additions and 8 deletions
@@ -21,7 +21,7 @@ class LongitudinalPlannerSP:
self.dec = DynamicExperimentalController(CP, mpc)
self.generation = int(model_bundle.generation) if (model_bundle := get_active_bundle()) else None
self.slc = SpeedLimitController()
self.slc = SpeedLimitController(CP)
@property
def mlsim(self) -> bool:
@@ -1,9 +1,3 @@
"""
Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors.
This file is part of sunnypilot and is licensed under the MIT License.
See the LICENSE.md file in the root directory for more details.
"""
import numpy as np
import time
@@ -35,8 +29,9 @@ class SpeedLimitController:
_a_ego: float
_v_offset: float
def __init__(self):
def __init__(self, CP):
self.params = Params()
self.CP = CP
self.policy = self.params.get("SpeedLimitControlPolicy", return_default=True)
self.resolver = SpeedLimitResolver(self.policy)
self.last_params_update = 0.0