|
|
@ -9,7 +9,6 @@ from openpilot.common.realtime import DT_CTRL |
|
|
|
from openpilot.selfdrive.car.car_helpers import interfaces |
|
|
|
from openpilot.selfdrive.car.car_helpers import interfaces |
|
|
|
from openpilot.selfdrive.car.fingerprints import all_known_cars |
|
|
|
from openpilot.selfdrive.car.fingerprints import all_known_cars |
|
|
|
from openpilot.selfdrive.car.interfaces import get_torque_params |
|
|
|
from openpilot.selfdrive.car.interfaces import get_torque_params |
|
|
|
from openpilot.selfdrive.car.subaru.values import CAR as SUBARU |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CAR_MODELS = all_known_cars() |
|
|
|
CAR_MODELS = all_known_cars() |
|
|
|
|
|
|
|
|
|
|
@ -22,12 +21,6 @@ MAX_LAT_JERK_UP_TOLERANCE = 0.5 # m/s^3 |
|
|
|
# jerk is measured over half a second |
|
|
|
# jerk is measured over half a second |
|
|
|
JERK_MEAS_T = 0.5 |
|
|
|
JERK_MEAS_T = 0.5 |
|
|
|
|
|
|
|
|
|
|
|
# TODO: put these cars within limits |
|
|
|
|
|
|
|
ABOVE_LIMITS_CARS = [ |
|
|
|
|
|
|
|
SUBARU.SUBARU_LEGACY, |
|
|
|
|
|
|
|
SUBARU.SUBARU_OUTBACK, |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
car_model_jerks: defaultdict[str, dict[str, float]] = defaultdict(dict) |
|
|
|
car_model_jerks: defaultdict[str, dict[str, float]] = defaultdict(dict) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -50,9 +43,6 @@ class TestLateralLimits(unittest.TestCase): |
|
|
|
if CP.notCar: |
|
|
|
if CP.notCar: |
|
|
|
raise unittest.SkipTest |
|
|
|
raise unittest.SkipTest |
|
|
|
|
|
|
|
|
|
|
|
if CP.carFingerprint in ABOVE_LIMITS_CARS: |
|
|
|
|
|
|
|
raise unittest.SkipTest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CarControllerParams = importlib.import_module(f'selfdrive.car.{CP.carName}.values').CarControllerParams |
|
|
|
CarControllerParams = importlib.import_module(f'selfdrive.car.{CP.carName}.values').CarControllerParams |
|
|
|
cls.control_params = CarControllerParams(CP) |
|
|
|
cls.control_params = CarControllerParams(CP) |
|
|
|
cls.torque_params = get_torque_params(cls.car_model) |
|
|
|
cls.torque_params = get_torque_params(cls.car_model) |
|
|
|