from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff', -1)) #command_lst.append(TelloPro.get_instance('up', 50)) #command_lst.append(TelloPro.get_instance('down', 50)) #command_lst.append(TelloPro.get_instance('left', 50)) #command_lst.append(TelloPro.get_instance('right', 50)) #command_lst.append(TelloPro.get_instance('forward', 50)) #command_lst.append(TelloPro.get_instance('back', 50)) #command_lst.append(TelloPro.get_instance('cw', 360)) command_lst.append(TelloPro.get_instance('ccw', 360)) command_lst.append(TelloPro.get_instance('land', -1)) for command in command_lst: tello.send_command_instance(command)
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff', -1)) command_lst.append(TelloPro.get_instance('up', 50)) command_lst.append(TelloPro.get_instance('down', 50)) for i in range(4): command_lst.append(TelloPro.get_instance('flip', i)) command_lst.append(TelloPro.get_instance('right', 50)) command_lst.append(TelloPro.get_instance('left', 50)) command_lst.append(TelloPro.get_instance('forward', 50)) command_lst.append(TelloPro.get_instance('back', 50)) command_lst.append(TelloPro.get_instance('cw', 50)) command_lst.append(TelloPro.get_instance('ccw', 50)) command_lst.append(TelloPro.get_instance('land', -1)) for command in command_lst: tello.send_command_instance(command)
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff', -1)) command_lst.append(TelloPro.get_instance('up', 50)) command_lst.append(TelloPro.get_instance('down', 40)) command_lst.append(TelloPro.get_instance('right', 40)) command_lst.append(TelloPro.get_instance('left', 40)) command_lst.append(TelloPro.get_instance('land', -1)) for command in command_lst: tello.send_command_instance(command)
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff')) command_lst.append(TelloPro.get_instance('up')) command_lst.append(TelloPro.get_instance('down')) command_lst.append(TelloPro.get_instance('left')) command_lst.append(TelloPro.get_instance('right')) command_lst.append(TelloPro.get_instance('forward')) command_lst.append(TelloPro.get_instance('back')) command_lst.append(TelloPro.get_instance('cw')) command_lst.append(TelloPro.get_instance('ccw')) command_lst.append(TelloPro.get_instance('land')) for command in command_lst: tello.send_command_instance(command)
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff', -1)) command_lst.append(TelloPro.get_instance('up', 50)) command_lst.append(TelloPro.get_instance('forward', 100)) command_lst.append(TelloPro.get_instance('down', 50)) command_lst.append(TelloPro.get_instance('ccw', 45)) command_lst.append(TelloPro.get_instance('forward', 100)) command_lst.append(TelloPro.get_instance('cw', 90)) command_lst.append(TelloPro.get_instance('forward', 100)) command_lst.append(TelloPro.get_instance('cw', 90)) command_lst.append(TelloPro.get_instance('forward', 100)) command_lst.append(TelloPro.get_instance('cw', 90)) command_lst.append(TelloPro.get_instance('forward', 100)) command_lst.append(TelloPro.get_instance('ccw', 45)) command_lst.append(TelloPro.get_instance('forward', 100)) command_lst.append(TelloPro.get_instance('land', -1)) for command in command_lst: tello.send_command_instance(command) #파이썬을 사용해서 파일 가져오고 오픈해서 사용 하는것을 하는거다 #포문으로 자체적으로 문법 만들어서 실행 할 수 도있다. #휴보처럼 포문으로 잘 만들어서 해라
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff', -1)) #의미 없음 command_lst.append(TelloPro.get_instance('up', 50)) command_lst.append(TelloPro.get_instance('down', 30)) command_lst.append(TelloPro.get_instance('left', 30)) command_lst.append(TelloPro.get_instance('right', 30)) command_lst.append(TelloPro.get_instance('forward', 40)) command_lst.append(TelloPro.get_instance('back', 40)) command_lst.append(TelloPro.get_instance('cw', 90)) command_lst.append(TelloPro.get_instance('ccw', 125)) #for i in range(4): # command_lst.append(TelloPro.get_instance('flip', i)) #-1 의미 없음. 맞춰주기위함 for command in command_lst: tello.send_command_instance(command)
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff')) command_lst.append(TelloPro.get_instance('land')) for command in command_lst: tello.send_command_instance(command)
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff', -1)) command_lst.append(TelloPro.get_instance('up', 20)) for i in range(4): command_lst.append(TelloPro.get_instance('flip', i)) command_lst.append(TelloPro.get_instance('land', -1)) for command in command_lst: tello.send_command_instance(command)
from tello import Tello import sys from datetime import datetime import time import TelloPro tello = Tello() command_lst = [] command_lst.append(TelloPro.get_instance('takeoff', -1)) #object를 가져온 뒤 command command_lst.append(TelloPro.get_instance('up',50)) command_lst.append(TelloPro.get_instance('down', 50)) command_lst.append(TelloPro.get_instance('forward', 30)) command_lst.append(TelloPro.get_instance('left', 50)) command_lst.append(TelloPro.get_instance('right', 50)) command_lst.append(TelloPro.get_instance('cw', 90)) command_lst.append(TelloPro.get_instance('ccw', 90)) command_lst.append(TelloPro.get_instance('back', 50)) command_lst.append(TelloPro.get_instance('land', -1)) for command in command_lst: tello.send_command_instance(command)