Skip to content
Engine created in Go to control a Tello drone using Gobot, with Lua as a scripting language.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
engine
scripts
vendor
.gitignore
Gopkg.lock
Gopkg.toml
README.md

README.md

tello-engine

Engine created in Go to control a Tello drone using Gobot, with Lua as a scripting language. Yet another fun hackathon project.

Installation

go get -u github.com/eleniums/tello-playground

Install MPlayer for video:

brew install mplayer

Run

First, connect to the Tello drone via Wi-Fi. It will be named something similar to "TELLO-XXXXXX". Then run the program:

go run ./cmd/main.go ./scripts/basic.lua

Technologies

Available lua commands

  • sleep(milliseconds): Sleep for the given number of milliseconds.
  • log(message): Log a message.
  • getlastkeypress(): Return the last key that was pressed or an empty string if none.
  • startvideo(): Initialize the video player and begin streaming from the drone.
  • takeoff(): Start the blades and raise the drone to a normal flying height.
  • land(): Lower the drone to the ground and stop the blades.
  • forward(speed): Move the drone forward at the given speed.
  • backward(speed): Move the drone backward at the given speed.
  • left(speed): Move the drone left at the given speed.
  • right(speed): Move the drone right at the given speed.
  • up(speed): Move the drone up at the given speed.
  • down(speed): Move the drone down at the given speed.
  • rotateleft(speed): Rotate the drone left at the given speed.
  • rotateright(speed): Rotate the drone right at the given speed.
  • frontflip(): Command the drone to perform a front flip.
  • backflip(): Command the drone to perform a back flip.
  • leftflip(): : Command the drone to perform a left flip.
  • rightflip(): : Command the drone to perform a right flip.
  • bounce(): Toggle "bouncing" the drone up and down.
  • stop(): Set all drone movement to 0.
You can’t perform that action at this time.