コード例 #1
0
    def poll(self, msgFormat, ser):
        length = 0
        data = []
        message = UbloxMessage.buildMessage(msgFormat, length, data)

        self.pollResult = None
        self.pollTarget = msgFormat
        ser.write(message)

        while self.pollResult is None:
            time.sleep(0.01)

        return self.pollResult
コード例 #2
0
 def sendMessage(self, ser, msgFormat, length, data):
     message = UbloxMessage.buildMessage(msgFormat, length, data)
     ser.write(message)
コード例 #3
0
 def send(self, clid, length, payload):
     logging.debug("Sending UBX packet of type %s: %s" % (clid, payload))
     stream = UbloxMessage.buildMessage(clid, length, payload)
     self.sendraw(stream)
コード例 #4
0
 def sendMessage(self, messageType, length, data):
     rawMessage = UbloxMessage.buildMessage(messageType, length, data)
     self.sendRawMessage(rawMessage)