DJI/Ryze Tech "Tello" remoted by this program occured an exception.
As the result, the drone program couldn't work properly.
The drone seems able to take off, but has something wrong for landing,
therefore the process may cause to stop before:
sys.exit()
in the part of:
if __name__ == '__main__':
tap=TelloAutoPilot()
tap.initConnection()
tap.takeoff()
tap.land()
sys.exit()
Then occured:
An exception has occurred, use %tb to see the full traceback.
SystemExit
C:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py:2870: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
Exception-able functions are defined as below:
try:
sent = self.sock.sendto('command'.encode(encoding="utf-8"), self.tello)
except:
pass
try:
sent = self.sock.sendto('speed 50'.encode(encoding="utf-8"), self.tello)
except:
pass
def land(self):
try:
sent = self.sock.sendto('land'.encode(encoding="utf-8"), self.tello)
except:
pass
https://github.com/yosiyoshi/YoshiDrone/blob/master/drone.py
DJI/Ryze Tech "Tello" remoted by this program occured an exception.
As the result, the drone program couldn't work properly.
The drone seems able to take off, but has something wrong for landing, therefore the process may cause to stop before:
sys.exit()
in the part of:Then occured:
Exception-able functions are defined as below: