Skip to content

[WIP] Simple kotlin library to control Tello using an Android App

License

Notifications You must be signed in to change notification settings

victor-vct/KTello

Repository files navigation

KTello

Simple kotlin library to control Tello drone using android app

Drone Tello

Tello is a cheap drone made to fly easily. There is a good stability control that allows you to worry only about basic movements.

KTello

This library can connect to Tello over the WiFi and send commands. You can find supported commands on Tello SDK.

Getting Started

  1. Connect a smartphone with Android to your computer
  2. Connect the smartphone to Tello drone
  3. Clone this project
  4. Navigate to project folder
  5. In terminal, execute ./gradlew assembleDebug installDebug

WARNING: The sample app only execute a simple routine, check what the routine does.

How to use

There is two options.

You can create an instance from KTello

val ktello = Ktello()

ktello.connect()
ktello.takeoff()
ktello.land()

OBS: you need to run the commands on another thread.

Or you can use pre setted high order function and only use like this:

ktello {
    connect()

    takeoff()

    Thread.sleep(5000)
    rotateClockwise(180)

    Thread.sleep(5000)
    land()
}

OBS: this function execute in a coroutine with global scope.

TODO

  • Read the Tello's returns
  • Support take a photo
  • Support video streamming

About

[WIP] Simple kotlin library to control Tello using an Android App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published