Class: Tello

Tello()

Main drone interface. Wraps Tello's UDP command protocol, video stream, and telemetry into a fluent Promise API.

Constructor

new Tello()

Source:

Methods

backward()

Fly backward by distance (cm).

Fly backward by distance (cm).

Source:

curve()

Fly a curve between two points (x1,y1,z1 → x2,y2,z2) at the given speed (cm/s).

Fly a curve between two points (x1,y1,z1 → x2,y2,z2) at the given speed (cm/s).

Source:

down()

Fly down by height (cm).

Fly down by height (cm).

Source:

emergencyStop()

Stop all motors immediately.

Stop all motors immediately.

Source:

flip()

Perform a flip in the given direction: 'f' (forward), 'b' (back), 'l' (left), 'r' (right).

Perform a flip in the given direction: 'f' (forward), 'b' (back), 'l' (left), 'r' (right).

Source:

flyTo()

Fly to coordinates (x, y, z) at speed (cm/s).

Fly to coordinates (x, y, z) at speed (cm/s).

Source:

forward()

Fly forward by distance (cm).

Fly forward by distance (cm).

Source:

get()

Read a single OSD telemetry field by name (e.g.

Read a single OSD telemetry field by name (e.g. 'bat', 'h', 'templ').

Source:

land()

Auto-land.

Auto-land.

Source:

left()

Fly left by distance (cm).

Fly left by distance (cm).

Source:

mock()

Switch to mock mode: send commands to 127.0.0.1 instead of the drone.

Switch to mock mode: send commands to 127.0.0.1 instead of the drone.

Source:

Fly right by distance (cm).

Fly right by distance (cm).

Source:

rotateCCW()

Rotate counter-clockwise by angle (degrees).

Rotate counter-clockwise by angle (degrees).

Source:

rotateCW()

Rotate clockwise by angle (degrees).

Rotate clockwise by angle (degrees).

Source:

sendCmd()

Low-level command: send a raw string to the drone and wait for 'ok' response.

Low-level command: send a raw string to the drone and wait for 'ok' response.

Source:

speed()

Set drone speed (cm/s).

Set drone speed (cm/s).

Source:

start()

Initialise the UDP connection to the drone and enter SDK mode.

Initialise the UDP connection to the drone and enter SDK mode.

Source:

startStream()

Start the video stream.

Start the video stream. Opens a UDP socket on port 11111 and pipes H.264 data to mplayer.

Source:

startTelemetry()

Start the telemetry dashboard and WebSocket server.

Start the telemetry dashboard and WebSocket server. Opens the browser unless BROWSER=none.

Source:

(async) stop()

Close all connections, kill subprocesses, and exit.

Close all connections, kill subprocesses, and exit.

Source:

stopStream()

Stop the video stream and kill the mplayer subprocess.

Stop the video stream and kill the mplayer subprocess.

Source:

stopTelemetry()

Stop the telemetry server and web server.

Stop the telemetry server and web server.

Source:

takeoff()

Auto-takeoff.

Auto-takeoff.

Source:

up()

Fly up by height (cm).

Fly up by height (cm).

Source:

wait()

Wait for a given number of milliseconds, then resolve.

Wait for a given number of milliseconds, then resolve.

Source: