Tello class

Represents the Tello in your code.

Properties

averageTemperature Future<double>
The Tello's average temperature, presumably in celsius.
no setter
barometerReading Future<double>
The Tello's barometer reading.
no setter
battery Future<int>
The Tello's battery percentage
no setter
distanceFromTakeoff Future<double>
The Tello's distance from its takeoff point, presumably in cm.
no setter
flightTime Future<int>
The Tello's flight time, presumably in seconds.
no setter
hashCode int
The hash code for this object.
no setterinherited
height Future<int>
The Tello's height from the ground, presumably in centimeters.
no setter
imuAcceleration Future<IMUAcceleration>
no setter
imuAttitude Future<IMUAttitude>
The Tello's pitch, roll, and yaw.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed Future<double>
The Tello's speed, presumably in centimeters per seconds.
no setter
state Stream<TelloState>
A stream of TelloState from the drone.
no setter
wifiSnr Future<int>
The Tello's wifi strength to your local machine, seems to max out at 90%.
no setter

Methods

changeWifi({required String name, required String password}) Future<String>
Changes the Tello's wifi name and password to the name and password you specify.
curveToPosition({int x1 = 0, int y1 = 0, int z1 = 0, int x2 = 0, int y2 = 0, int z2 = 0, int speed = 20}) Future<String>
Makes the Tello move in a curve that passes through the (x1, y1, z1) and (x2, y2, z2) coordinates that you specify.
disconnect() → void
Closes sockets that connect to the Tello and cancels any lingering listeners to the Tello's state.
emergencyShutdown() → void
Stops all of the Tello's motors.
flip(FlipDirection direction) Future<String>
Makes the Tello flip in the direction you specify.
fly(FlyDirection direction, int lengthCm) Future<String>
Makes the Tello fly lengthCm in the direction you specify.
flyToPosition({int x = 0, int y = 0, int z = 0, int speed = 20}) Future<String>
Makes the Tello fly to the (x, y, z) coordinates relative to its current position.
keepAwake({Duration pollInterval = const Duration(seconds: 10)}) → void
Asks the Tello for it's battery every pollInterval so that it's automatic shutdown feature doesn't kick in.
land() Future<String>
Makes the Tello land and then returns the Tello's response.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remoteControl({int roll = 0, int pitch = 0, int yaw = 0, int vertical = 0}) → void
Sets the Tello's remote control to (roll, pitch, yaw, vertical)
rotate(int angle) Future<String>
Makes the Tello rotate clockwise if angle is positive; otherwise, it rotates counterclockwise.
setSpeed(int speedCmPerSec) Future<String>
Sets the Tello's speed to speedCmPerSec
startVideo() Future<String>
Starts the Tello's video stream.
stopVideo() Future<String>
Stops the Tello's video stream.
takeoff() Future<String>
Makes the Tello takeoff and then returns the Tello's response.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

tello({Duration? timeout = const Duration(seconds: 12), Address? telloAddress, Address? localAddress, Address? stateReceiverAddress}) Future<Tello>
Serves as the constructor for the Tello class, is a static method because constructors can't be asynchronous.