Last active
January 20, 2022 06:25
-
-
Save six519/831f67383d3011ed7f7f8075de212703 to your computer and use it in GitHub Desktop.
Controlling DJI Tello Drone With Titik
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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