version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
22 lines
703 B
Python
Executable File
22 lines
703 B
Python
Executable File
#!/usr/bin/env python3
|
|
from opendbc.car import structs
|
|
from opendbc.car.interfaces import CarInterfaceBase
|
|
from opendbc.car.mock.carcontroller import CarController
|
|
from opendbc.car.mock.carstate import CarState
|
|
|
|
|
|
# mocked car interface for dashcam mode
|
|
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 = "mock"
|
|
ret.lateralTuning.pid.kpBP = [0.]
|
|
ret.lateralTuning.pid.kpV = [0.]
|
|
ret.lateralTuning.pid.kiBP = [0.]
|
|
ret.lateralTuning.pid.kiV = [0.]
|
|
ret.dashcamOnly = True
|
|
return ret
|