version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
30 lines
884 B
Python
30 lines
884 B
Python
from opendbc.car import structs, get_safety_config
|
|
from opendbc.car.interfaces import CarInterfaceBase
|
|
from opendbc.car.psa.carcontroller import CarController
|
|
from opendbc.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 |