Files
2026-09-03 18:23:24 -05:00

30 lines
876 B
Python

from iqdbc.car import structs, get_safety_config
from iqdbc.car.interfaces import CarInterfaceBase
from iqdbc.car.psa.carcontroller import CarController
from iqdbc.car.psa.carstate import CarState
TransmissionType = structs.CarParams.TransmissionType
class CarInterface(CarInterfaceBase):
CarState = CarState
CarController = CarController
@staticmethod
def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, alpha_long, is_release, docs) -> structs.CarParams:
ret.brand = 'psa'
ret.safetyConfigs = [get_safety_config(structs.CarParams.SafetyModel.psa)]
ret.dashcamOnly = True
ret.steerActuatorDelay = 0.3
ret.steerLimitTimer = 0.1
ret.steerAtStandstill = True
ret.steerControlType = structs.CarParams.SteerControlType.angle
ret.radarUnavailable = True
ret.alphaLongitudinalAvailable = False
return ret