tello-node
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Tello Node

A Typescript promise wrapper to communicate with the DJI Tello drone in Nodejs

Requirements

You will need a DJI Ryze Tello drone and Nodejs installed.

Install

npm install tello-node --save

Usage

const tello = TelloNode.getInstance(TelloNode.getDefaultConfig())
await tello.connect()
const battery = await tello.send('battery?')

Usage with custom configuration

const tello = TelloNode.getInstance({
    tello: '192.168.10.1' // address of Tello Drone
    command: 8889 // port on which Tello will be listening for commands
    state: 8890 // port on which to listen for Tello state messages
    server: '0.0.0.0' // address of server, should be localhost
    timeout: 3000 // number of miliseconds to wait for a command be responded to
    silent: false // print logs to console
})
await tello.connect()
const battery = await tello.send('battery?')

Usage with autoconnect and autocommand

const battery = await TelloNode.getInstance(TelloNode.getDefaultConfig()).send('battery?')

More examples

See /examples for more information.

License

APACHE 2

Readme

Keywords

Package Sidebar

Install

npm i tello-node

Weekly Downloads

9

Version

1.0.1

License

Apache-2.0

Unpacked Size

112 kB

Total Files

15

Last publish

Collaborators

  • mehrad