Created By:
Karan Singh
.
As there was no library available to control the Tello DJI drone by nodemcu or by Arduino, there was only 1 library founded, but even that was not working, so i have created a library from the scratch.
Download, This library(tello) either by zip or by git. Then in arduino library go to sketch -> include lib -> add zip lib.
just simply download the file, copy tello file, and then add the tello file in Arduino library, >located in Document -> Arduino -> Library
This library includes a class "Tello"
- First, make an object of the class Tello
Tello tello;
- Then you call init function to initialize it. In setup loop
void setup(){ ..... tello.init(); }
- Then for take-off simply call takeoff
tello.takeoff();
- And for landing
tello.land();
And of course Dillinger itself is open source with a [public repository][dill] on GitHub.
you can use, demo file to test it. it will takeoff the, the drone then after 5 sec, land it, then repeat after 10 sec.
Funtion | Discribtion |
---|---|
takeoff() | To take-off |
land() | For Tello auto land |
startVideoStream() | video stream on |
stopVideoStream() | Set video stream off |
turnOff() | Stop all motors immediately |
up(int x) | Tello fly up with distance x cm(min:20cm , max = 500 cm) |
down(int x) | Tello fly down with distance x cm(min:20cm , max = 500 cm) |
left(int x) | Tello fly left with distance x cm(min:20cm , max = 500 cm) |
right(int x) | Tello fly right with distance x cm(min:20cm , max = 500 cm) |
forward(int x) | Tello fly forward with distance x cm(min:20cm , max = 500 cm) |
back(int x) | Tello fly back with distance x cm(min:20cm , max = 500 cm) |
rotate_clockwise(int deg) | Tello rotate x degree clockwise(min:1, max:3600) |
rotate_anticlockwise(int deg) | Tello rotate x degree counter-clockwise (min:1, max:3600) |
flip_front() | Ask Tello to flip front |
flip_right() | Ask Tello to flip Right |
flip_left() | Ask Tello to flip Left |
bool flip_back() | Ask Tello to flip Back |
setSpeed(int x) | Set speed to x cm/s |
sendRCcontrol(int x,int y,int z) | Send RC control via four channels(left/right (-100-100), forward/backward (-100-100), up/down (-100-100)) ,yaw (-100-100) |
changeWifi(string ssid, string password) | Set Wi-Fi with SSID password(Works only with EDU version, so havent tested) |
int getSpeed() | Get Speed |
Get Battery level percentage | getBattery() |
getTime() | Get Current Flying time |
getHeight() | Get current flying height |
getTemperature() | Get temperature (°C) |
Want to contribute? Great! I will be availabe, making sure it always kept updated.
Here's the link
Free Software, Hell Yeah!