Advertisement
ABIX_Edukacja

Kod TelloEDU - first-fly

Apr 16th, 2023
1,156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. from tello_solectric_pl import TelloEDU
  2. from time import sleep
  3.  
  4. print("Początek testów... tworzymy obiekt i próbujemy połączyć się, a potem wystartować...")
  5. dron = TelloEDU()
  6.  
  7. if dron.connect():
  8.     print("Połączenie udane - start...")
  9.     dron.takeoff()
  10.     sleep(2)
  11.     print("I lądujemy...")
  12.     dron.land()
  13. else:
  14.     print("Połączenie nieudane - nic nie testujemy...")
  15.  
  16. print("Koniec testu")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement