def __init__(self, CP): # radar self.pts = {} self.delay = 0.0 # Delay of radar canbus = CanBus() print "Using %d as obstacle CAN bus ID" % canbus.obstacle self.rcp = create_radar_can_parser(canbus, CP.carFingerprint)
def __init__(self, CP): # radar self.pts = {} self.delay = 0.0 # Delay of radar canbus = CanBus() print "Using %d as obstacle CAN bus ID" % canbus.obstacle self.rcp = create_radard_can_parser(canbus, CP.carFingerprint) context = zmq.Context() self.logcan = messaging.sub_sock(context, service_list['can'].port)
def __init__(self, CP): # radar self.pts = {} self.delay = 0.0 # Delay of radar canbus = CanBus() print "Using %d as obstacle CAN bus ID" % canbus.obstacle self.rcp = create_radar_can_parser(canbus, CP.carFingerprint) self.trigger_msg = LAST_RADAR_MSG self.updated_messages = set()