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
def sendMessage(self, ser, msgFormat, length, data): message = UbloxMessage.buildMessage(msgFormat, length, data) ser.write(message)
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)
def sendMessage(self, messageType, length, data): rawMessage = UbloxMessage.buildMessage(messageType, length, data) self.sendRawMessage(rawMessage)