mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 02:22:09 +08:00
35a99d7fc6
* 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: 7248b00086f9b8d5d95c80a2eb7fe89c387f44ea
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
|