open source driving agent
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
447 B

6 years ago
#!/usr/bin/env python3
from openpilot.selfdrive.car.interfaces import CarInterfaceBase
6 years ago
# mocked car interface for dashcam mode
6 years ago
class CarInterface(CarInterfaceBase):
@staticmethod
def _get_params(ret, candidate, fingerprint, car_fw, experimental_long, docs):
6 years ago
ret.carName = "mock"
ret.mass = 1700.
ret.wheelbase = 2.70
ret.centerToFront = ret.wheelbase * 0.5
ret.steerRatio = 13.
ret.dashcamOnly = True
6 years ago
return ret