Simple kotlin library to control Tello drone using android app
Tello is a cheap drone made to fly easily. There is a good stability control that allows you to worry only about basic movements.
This library can connect to Tello over the WiFi and send commands. You can find supported commands on Tello SDK.
- Connect a smartphone with Android to your computer
- Connect the smartphone to
Tello
drone - Clone this project
- Navigate to project folder
- In terminal, execute
./gradlew assembleDebug installDebug
WARNING: The sample app only execute a simple routine, check what the routine does.
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.
- Read the Tello's returns
- Support take a photo
- Support video streamming