mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-22 19:23:57 +08:00
* use CP
* no car control, consistent _update function signatures
* eh it's fine to name it whatever
* clean up
* oops
* !!
* now we can delete this!
* nobody does anymore
old-commit-hash: 7248b00086
17 lines
447 B
Python
Executable File
17 lines
447 B
Python
Executable File
#!/usr/bin/env python3
|
|
from openpilot.selfdrive.car.interfaces import CarInterfaceBase
|
|
|
|
|
|
# mocked car interface for dashcam mode
|
|
class CarInterface(CarInterfaceBase):
|
|
|
|
@staticmethod
|
|
def _get_params(ret, candidate, fingerprint, car_fw, experimental_long, docs):
|
|
ret.carName = "mock"
|
|
ret.mass = 1700.
|
|
ret.wheelbase = 2.70
|
|
ret.centerToFront = ret.wheelbase * 0.5
|
|
ret.steerRatio = 13.
|
|
ret.dashcamOnly = True
|
|
return ret
|