fix interface init for mock car

pull/1560/head
Adeeb Shihadeh 5 years ago
parent b251eff764
commit 86057f785b
  1. 7
      selfdrive/car/interfaces.py

@ -23,9 +23,10 @@ class CarInterfaceBase():
self.frame = 0 self.frame = 0
self.low_speed_alert = False self.low_speed_alert = False
self.CS = CarState(CP) if CarState is not None:
self.cp = self.CS.get_can_parser(CP) self.CS = CarState(CP)
self.cp_cam = self.CS.get_cam_can_parser(CP) self.cp = self.CS.get_can_parser(CP)
self.cp_cam = self.CS.get_cam_can_parser(CP)
self.CC = None self.CC = None
if CarController is not None: if CarController is not None:

Loading…
Cancel
Save