mateustoin / DJI-Tello-Dart-Package

Quick and easy way to connect to a DJI Tello Drone. Using standard Dart packages, the socket is created intuitively and commands are sent easily.

Home Page:https://pub.dev/packages/tello

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Controlling DJI Tello Drone with Dart

Simple example to control Tello Drone with commands recieved from terminal.

import 'dart:async';
import 'dart:io';
import 'package:tello/tello.dart';

main() async {
  // Connect to Tello when machine WiFi is already connected to the drone
	var tello = new ConnectTello();

  while(true) {
    stdout.write('Write a command: ');
    String command = stdin.readLineSync();
    tello.sendCommand(command);
    await Future.delayed(Duration(milliseconds: 100));
  }
}

About

Quick and easy way to connect to a DJI Tello Drone. Using standard Dart packages, the socket is created intuitively and commands are sent easily.

https://pub.dev/packages/tello

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%