Пример #1
0
	def writeFiles( self, filePath, componentName , FBSettings, FBlocks):
		self.componentName = componentName
		self.FBSettings = FBSettings
		self.FBlocks = FBlocks
		self.filePath = filePath
		
		self.DataGen = StructDataGen.structDataGen(self.FBSettings, self.FBlocks)
		
		self.writeRegisterHeader()
#		self.writeTypesHeader()
#		self.writeFunctionsSetup()

		self.writeTypesHeaderCompact()
		self.writeFunctionsSetupCompact()
		self.writeTypesTable()

		self.writeStringTables()
Пример #2
0
    def __init__(self, mav_proc):
        threading.Thread.__init__(self)

        self.mav_proc = mav_proc
        self.MAVFSettings   = self.mav_proc.doc.MAVFSettings
        self.FBlocks        = self.mav_proc.doc.FBlocks
        
        self.DataGen = StructDataGen.structDataGen(self.MAVFSettings, self.FBlocks)

        self._stop = threading.Event()

        self.rx_q           = Queue.Queue(20)
                
        self.function_index = 0
        
        self.status = Status.NOT_STARTED
        
        self.heartbeat_time = 0
        
        self.synchronised = False
        
        self.timeout = time.time() + 1E6
        
        self.callback = None