Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 518 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 518 Bytes

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));
  }
}