본문 바로가기

tech/computing

Tello-Python

반응형

This is a collection of python-based sample code that interact with the Ryze Tello drone.

https://github.com/dji-sdk/Tello-Python

 

dji-sdk/Tello-Python

This is a collection of python modules that interact with the Ryze Tello drone. - dji-sdk/Tello-Python

github.com

1. github의 tello-python에서 code를 다운로드

 압축파일을 받아서 폴더에서 압축해제.

 

 

 

 

2. code 수정

python 2.x로 작성된 code로 "tello.py", "tello_test.py", "stats.py" 에서 print문에 "( )" 괄호를 넣는 수정 필요.

3. tello와 wi-fi로 연결

 tello의 전원을 켜고

 

PC에서 wi-fi 검색하여 접속.

 

 

4. command text 파일수정 (예제 : take off, delay, landing)

 

 

 

 

4. 터미널 창에서 명령어 실행 (python 3.x 설치 기분)

압축풀고, Tello-Python-master/Single_Tello_Test/ 경로로 이동한 후

log 폴성 생성 (tello command/response 이력저장)

$ mkdir log

tello_test.py를 통해서 command2의 명령어 셋 실행

$ python3 tello_test.py command2.txt

 

 

 

 

반응형