Sample for a takeoff, hover for some seconds and land.
fun main(args: Array<String>) {
val tello = KTello()
tello.connect()
Thread.sleep(3000)
if (tello.isConnected) {
tello.takeOff()
Thread.sleep(10000)
tello.land()
}
tello.close()
}
https://dl-cdn.ryzerobotics.com/downloads/tello/0228/Tello+SDK+Readme.pdf
https://dl-cdn.ryzerobotics.com/downloads/tello/20180222/Tello3.py