diff --git a/Single_Tello_Test/tello.py b/Single_Tello_Test/tello.py index b69563e..d6c4820 100644 --- a/Single_Tello_Test/tello.py +++ b/Single_Tello_Test/tello.py @@ -35,18 +35,18 @@ def send_command(self, command): self.log.append(Stats(command, len(self.log))) self.socket.sendto(command.encode('utf-8'), self.tello_adderss) - print 'sending command: %s to %s' % (command, self.tello_ip) + print ('sending command: %s to %s' % (command, self.tello_ip)) start = time.time() while not self.log[-1].got_response(): now = time.time() diff = now - start if diff > self.MAX_TIME_OUT: - print 'Max timeout exceeded... command %s' % command + print ('Max timeout exceeded... command %s' % command) # TODO: is timeout considered failure or next command still get executed # now, next one got executed return - print 'Done!!! sent command: %s to %s' % (command, self.tello_ip) + print ('Done!!! sent command: %s to %s' % (command, self.tello_ip)) def _receive_thread(self): """Listen to responses from the Tello. @@ -61,7 +61,7 @@ def _receive_thread(self): self.log[-1].add_response(self.response) except socket.error, exc: - print "Caught exception socket.error : %s" % exc + print ("Caught exception socket.error : %s" % exc) def on_close(self): pass