본문 바로가기

tech/computing

DJI Tello Drone SDK 2.0 (Commands)

반응형

TELLO EDU 다운로드

https://www.ryzerobotics.com/kr/tello-edu/downloads

 

텔로 공식 웹사이트-Shenzhen Ryze Technology Co.,Ltd.

iOS iOS 10 이상 요구. iPhone 5s, iPhone SE, iPhone 6, iPhone 6 Plus, iPhone 6s, iPhone 6s Plus, iPhone 7, iPhone 7 Plus, iPhone 8, iPhone 8 Plus, iPhone X, iPad mini 4, iPad mini 4 Wi-Fi + Cellular와 호환됨. 안드로이드 안드로이드 4.4 이

www.ryzerobotics.com

SDK 2.0 User Guide / Control Commands

command description possible response
command enter sdk mode ok/error
takeoff auto takeoff. ok/error
land auto landing. ok/error
streamon enable video stream. ok/error
streamoff enable video stream. ok/error
emergency stop moters immediately. ok/error
up x ascend to "x" cm.
(x : 20~500)
ok/error
down x down "x" descend to "x" cm.
(x : 20~500)
ok/error
left x fly left for "x" cm.
(x : 20~500)
ok/error
right x fly right for "x" cm.
(x : 20~500)
ok/error
forward x fly forward for "x" cm.
(x : 20~500)
ok/error
back x fly back for "x" cm.
(x : 20~500)
ok/error
cw x rotate  "x" degrees clockwise.
(x : 1~360)
ok/error
ccw x rotate  "x" degrees counterclockwise.
(x : 1~360)
ok/error
flip x flip in "x" direction.
"l" = left
"r" = right
"f" = forward
"b" = back
ok/error
go x y z speed fly to "x" "y" "z" at "speed" (cm/s).
"x" = -500 ~ 500
"y" = -500 ~ 500
"z" = -500 ~ 500
"speed" = 10 ~ 100
note : "x", "y", and "z" values can't be set between -20 ~ 20 simultaneously.
ok/error
stop hovers in the air.
note : works at any time.
ok/error
curve x1 y1 z1 x2 y2 z2 speed fly at a curve according to the two given coordinates at "speed" (cm/s).
if the arc radius is not within a range of 0.5~10 meters, it will respond with an error.
"x1", " x2" = -500 ~ 500
"y1", "y2" = -500 ~ 500
"z1", "z2"  = -500 ~ 500
"speed" = 10 ~ 60
note : "x", "y", and "z" values can't be set between -20 ~ 20 simultaneously.
ok/error
go x y z speed mid fly to "x" "y", and "z" coordinates of the mission pad.
"mid" = m1 ~ m8
"x" = -500 ~ 500
"y" = -500 ~ 500
"z" = -500 ~ 500
"speed" = 10 ~ 100 (cm/s)
note : "x", "y", and "z" values can't be set between -20 ~ 20 simultaneously.
ok/error
curve x1 y1 z1 x2 y2 z2 speed mid fly at a curve according to the two given coordinates of mission pad id at "speed" (cm/s).
if the arc radius is not within a range of 0.5~10 meters, it will respond with an error.
"x1", " x2" = -500 ~ 500
"y1", "y2" = -500 ~ 500
"z1", "z2"  = -500 ~ 500
"speed" = 10 ~ 60
note : "x", "y", and "z" values can't be set between -20 ~ 20 simultaneously.
ok/error
jump x y z speed yaw mid1 mid2 fly to coordinates "x" "y", and "z" of mission pad 1, and recognize coordinates 0,0, "z" of mission pad 2 and rotate to the yaw value.
"mid" = m1 ~ m8
"x" = -500 ~ 500
"y" = -500 ~ 500
"z" = -500 ~ 500
"speed" = 10 ~ 100 (cm/s)
note : "x", "y", and "z" values can't be set between -20 ~ 20 simultaneously.
ok/error

SDK 2.0 User Guide / Set Commands

command description possible response
speed x set speed to "x" cm/s.
(x : 10 ~ 100)
ok/error
rc a b c d set remote controller control via four channels.
"a" = left/right (-100 ~ 100)
"b" = forward/backward (-100 ~ 100)
"c" = up/down (-100 ~ 100)
"d" = yaw (-100 ~ 100)
ok/error
wifi ssid pass set wi-fi password
ssid = update wi-fi name
pass = updated wi-fi password
ok/error
mon enable mission pad detection (both forward and downward detection). ok/error
moff disnable mission pad detection ok/error
mdirection x "x" = 0/1/2
0 = enable downward detection only
1 = enable forward detection only
2 = enable both forward and downward detection

note : perform "mon" command before performing this command.
the detection frequency is 20hz if only the forward or download detection is enabled. if both the forward and download detection are enabled, the detection frequency is 10hz
ok/error
ap ssid pass set the tello to station mode, and connect to a new access point with the point's ssid and password.
ssid = updated wi-fi name
pass = updated wi-fi password
ok/error

SDK 2.0 User Guide / Read Commands

command description possible response
speed? obtain current speed (cm/s). "x" : 10 ~ 100
battery? obtain current battery percentage. "x" : 0 ~ 100
time? obtain curren fight time. "time"
wifi? obtain wi-fi snr. "snr"
sdk? obtain the tello sdk version. "sdk version"
sn? obtain the tello serial number. serial number"
반응형