ryze_tello 1.0.3 copy "ryze_tello: ^1.0.3" to clipboard
ryze_tello: ^1.0.3 copied to clipboard

outdated

A Dart library that provides a high level API to the Tello drone's SDK.

This package provides a Dart interface to Tello drones.

Getting started #

  • Install this package from pub.dev.
  • Write a dart script to control your Tello.
  • Turn on your Tello.
  • Run your script and watch your Tello fly through the air.

Usage #

Here's some sample code that shows how you can make a Tello takeoff, hover in the air for 5 seconds, and then land.

An important thing to note here is that tello.disconnect() must be called to properly dispose of the sockets that connect to the tello.

import 'package:ryze_tello/ryze_tello.dart';

void main() async {
  late final Tello tello;

  try {
    /* Initializing */
    tello = await Tello.tello();

    /* Flying Around */
    await tello.takeoff();

    await Future.delayed(const Duration(seconds: 5));

    await tello.land();
  } finally {
    /* Cleanup & Disconnection */
    tello
        .disconnect(); 
  }
}

Additional information #

This package is a wrapper around the Tello's SDK. You can find more information about the SDK at these links.

5
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Dart library that provides a high level API to the Tello drone's SDK.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on ryze_tello