dji-tello
v1.0.15
Published
Package to control your DJI-Tello drone from your computer
Downloads
17
Readme
DJI Tello Drone Controller
This NPM package allows you to control your Tello UAV remotely. You can send him all the instructions (Here are the most used ones: command, takeoff, land, up, down, left, right, forward, back, flip, speed, speed?, battery?)
Installation
Create your node.js project and install my npm package https://www.npmjs.com/package/dji-tello
mkdir tello-controller
cd tello-controller
npm init
npm i dji-tello
Now, you have the dji-tello package, all you have to do is use it
Usage
Don't forget to connect to your drone's wifi with your computer. With this example, this program will display the current drone battery, make it take off, make it flip forward, then land.
var dji = require('dji-tello');
dji.setHost('192.168.10.1'); //optional (default host : 192.168.10.1)
dji.setPort('8889'); //optional (default port : 8889)
dji.connect();
setTimeout(() => {
dji.getBattery();
setTimeout(() => {
dji.takeoff();
setTimeout(() => {
dji.event('flip f');
setTimeout(() => {
dji.land();
}, 5000);
}, 5000);
}, 3000);
}, 3000);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.