tello-sdk3
v0.1.1
Published
Asynchronous based library for communicating to DJI Tello through udp4 according to the sdk v3
Downloads
8
Readme
DJI Tello SDKv3
This is a Work in progress
We recommend adding
"type": "module"
to yourpackage.json
to allow top-level await
Install
npm i tello-sdk3
Example
import Tello from 'tello-sdk3';
const drone = new Tello();
await drone.connect();
await drone.takeOff();
await drone.sleep(1000);
await drone.land();
Read example
import Tello from 'tello-sdk3';
const drone = new Tello();
// Move until you reach 150cm
while (drone.sensor.height < 150) {
await drone.move.up(25);
}
await drone.land();
Set example
import Tello from 'tello-sdk3';
const drone = new Tello();
await drone.set.speed(50);
await drone.move.front(30);
await drone.move.back(30);
await drone.land();