mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
fix interface init for mock car
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user