IQ.Pilot Prebuilt Release @ 27f668a
This commit is contained in:
30
artifacts/package_runtime/iqdbc/car/psa/interface.py
Normal file
30
artifacts/package_runtime/iqdbc/car/psa/interface.py
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user