2018-04-04 03:33:42 +08:00
|
|
|
# Tello
|
2018-04-04 02:42:16 +08:00
|
|
|
|
|
|
|
This package contains the Gobot driver for the Ryze Tello drone, sold by DJI.
|
|
|
|
|
2018-04-19 15:50:40 +08:00
|
|
|
For more information on this drone, go to: [https://www.ryzerobotics.com/tello](https://www.ryzerobotics.com/tello)
|
2018-04-04 02:42:16 +08:00
|
|
|
|
|
|
|
## How to Install
|
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
Please refer to the main [README.md](https://github.com/hybridgroup/gobot/blob/release/README.md)
|
2018-04-04 02:42:16 +08:00
|
|
|
|
|
|
|
## How to Use
|
2018-04-05 17:31:38 +08:00
|
|
|
|
|
|
|
Connect to the drone's Wi-Fi network from your computer. It will be named something like "TELLO-XXXXXX".
|
|
|
|
|
|
|
|
Once you are connected you can run the Gobot code on your computer to control the drone.
|
2018-04-04 02:42:16 +08:00
|
|
|
|
|
|
|
Here is a sample of how you initialize and use the driver:
|
|
|
|
|
|
|
|
```go
|
2018-04-04 03:33:42 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2023-06-05 00:36:55 +08:00
|
|
|
"fmt"
|
|
|
|
"time"
|
2018-04-04 03:33:42 +08:00
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
"gobot.io/x/gobot/v2"
|
|
|
|
"gobot.io/x/gobot/v2/platforms/dji/tello"
|
2018-04-04 03:33:42 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2023-06-05 00:36:55 +08:00
|
|
|
drone := tello.NewDriver("8888")
|
2018-04-04 03:33:42 +08:00
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
work := func() {
|
|
|
|
drone.TakeOff()
|
2018-04-04 03:33:42 +08:00
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
gobot.After(5*time.Second, func() {
|
|
|
|
drone.Land()
|
|
|
|
})
|
|
|
|
}
|
2018-04-04 03:33:42 +08:00
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
robot := gobot.NewRobot("tello",
|
|
|
|
[]gobot.Connection{},
|
|
|
|
[]gobot.Device{drone},
|
|
|
|
work,
|
|
|
|
)
|
2018-04-04 03:33:42 +08:00
|
|
|
|
2024-02-11 22:34:50 +08:00
|
|
|
if err := robot.Start(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2018-04-04 03:33:42 +08:00
|
|
|
}
|
2018-04-04 02:42:16 +08:00
|
|
|
```
|
|
|
|
|
2020-01-11 22:20:27 +08:00
|
|
|
## Telo Edu driver
|
|
|
|
|
|
|
|
If you are planning to connect to the edu version of the tello, please use the `NewDriverWithIP` driver instead
|
|
|
|
|
|
|
|
```go
|
|
|
|
drone := tello.NewDriverWithIP("192.168.10.1", "8888")
|
|
|
|
```
|
|
|
|
|
2018-04-04 02:42:16 +08:00
|
|
|
## References
|
|
|
|
|
2018-04-13 19:49:12 +08:00
|
|
|
This driver could not exist without the awesome members of the unofficial Tello forum:
|
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
<https://tellopilots.com/forums/tello-development.8/>
|
2018-04-13 19:49:12 +08:00
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
Special thanks to [@Kragrathea](https://github.com/Kragrathea) who figured out a LOT of the packets and code as implemented
|
|
|
|
in C#: [https://github.com/Kragrathea/TelloPC](https://github.com/Kragrathea/TelloPC)
|
2018-04-13 19:49:12 +08:00
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
Also thanks to [@microlinux](https://github.com/microlinux) with the Python library which served as the first example for
|
|
|
|
the Tello community: [https://github.com/microlinux/tello](https://github.com/microlinux/tello)
|
2018-04-19 04:46:51 +08:00
|
|
|
|
2023-06-05 00:36:55 +08:00
|
|
|
Thank you to bluejune for the [https://bitbucket.org/PingguSoft/pytello](https://bitbucket.org/PingguSoft/pytello) repo,
|
|
|
|
especially the Wireshark Lua dissector which has proven indispensable.
|