|
|
@ -10,7 +10,6 @@ from common.realtime import DT_CTRL |
|
|
|
from selfdrive.car.car_helpers import interfaces |
|
|
|
from selfdrive.car.car_helpers import interfaces |
|
|
|
from selfdrive.car.fingerprints import all_known_cars |
|
|
|
from selfdrive.car.fingerprints import all_known_cars |
|
|
|
from selfdrive.car.interfaces import get_torque_params |
|
|
|
from selfdrive.car.interfaces import get_torque_params |
|
|
|
from selfdrive.car.hyundai.values import CAR as HYUNDAI |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CAR_MODELS = all_known_cars() |
|
|
|
CAR_MODELS = all_known_cars() |
|
|
|
|
|
|
|
|
|
|
@ -22,14 +21,6 @@ MAX_LAT_ACCEL = 3.0 # m/s^2 |
|
|
|
# jerk is measured over half a second |
|
|
|
# jerk is measured over half a second |
|
|
|
JERK_MEAS_FRAMES = 0.5 / DT_CTRL |
|
|
|
JERK_MEAS_FRAMES = 0.5 / DT_CTRL |
|
|
|
|
|
|
|
|
|
|
|
# TODO: update the max measured lateral accel for these cars |
|
|
|
|
|
|
|
ABOVE_LIMITS_CARS = [ |
|
|
|
|
|
|
|
HYUNDAI.KONA_EV, |
|
|
|
|
|
|
|
HYUNDAI.KONA_HEV, |
|
|
|
|
|
|
|
HYUNDAI.KONA, |
|
|
|
|
|
|
|
HYUNDAI.KONA_EV_2022, |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
car_model_jerks: DefaultDict[str, Dict[str, float]] = defaultdict(dict) |
|
|
|
car_model_jerks: DefaultDict[str, Dict[str, float]] = defaultdict(dict) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -52,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) |
|
|
|