fix interface init for mock car

albatross
Adeeb Shihadeh 2020-05-23 15:39:22 -07:00
parent b251eff764
commit 86057f785b
1 changed files with 4 additions and 3 deletions

View File

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