Skip to content

Instantly share code, notes, and snippets.

@six519
Last active January 20, 2022 06:25
Show Gist options
  • Save six519/831f67383d3011ed7f7f8075de212703 to your computer and use it in GitHub Desktop.
Save six519/831f67383d3011ed7f7f8075de212703 to your computer and use it in GitHub Desktop.
Controlling DJI Tello Drone With Titik
sc(5)
p("Drone Commander 1.1\n")
p("By: Ferdinand Silva\n")
p("-------------------\n")
command_connection = netc("udp", "192.168.10.1:8889")
netw(command_connection, "command")
fl (0, 0)
sc(3)
p(">>> ")
sc(4)
cmd = r("")
if (!(cmd == ""))
if (cmd == "exit")
netx(command_connection)
ex(0)
fi
netw(command_connection, cmd)
response = netr(command_connection, 1024)
sc(5)
p("\nDrone response: " + response + "\n")
fi
lf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment