|
|
@ -88,14 +88,13 @@ class CarInterfaceBase(ABC): |
|
|
|
return ACCEL_MIN, ACCEL_MAX |
|
|
|
return ACCEL_MIN, ACCEL_MAX |
|
|
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
@classmethod |
|
|
|
def get_non_essential_params(cls, candidate: str): |
|
|
|
def get_params(cls, candidate: str, fingerprint: Optional[Dict[int, Dict[int, int]]] = None, car_fw: Optional[List[car.CarParams.CarFw]] = None, experimental_long: bool = False): |
|
|
|
""" |
|
|
|
if fingerprint is None: |
|
|
|
Parameters essential to controlling the car may be incomplete or wrong without FW versions or fingerprints. |
|
|
|
fingerprint = gen_empty_fingerprint() |
|
|
|
""" |
|
|
|
|
|
|
|
return cls.get_params(candidate, gen_empty_fingerprint(), list(), False) |
|
|
|
if car_fw is None: |
|
|
|
|
|
|
|
car_fw = list() |
|
|
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
|
|
|
|
def get_params(cls, candidate: str, fingerprint: Dict[int, Dict[int, int]], car_fw: List[car.CarParams.CarFw], experimental_long: bool): |
|
|
|
|
|
|
|
ret = CarInterfaceBase.get_std_params(candidate) |
|
|
|
ret = CarInterfaceBase.get_std_params(candidate) |
|
|
|
ret = cls._get_params(ret, candidate, fingerprint, car_fw, experimental_long) |
|
|
|
ret = cls._get_params(ret, candidate, fingerprint, car_fw, experimental_long) |
|
|
|
|
|
|
|
|
|
|
|