hybridgroup.gobot/platforms/dji/tello
Thomas Kohler a8f47eaae8
build(go, deps): switch to Go 1.22 and update modules (#1093)
2024-11-01 12:54:20 +01:00
..
README.md examples: fix missing checks of return values (#1060) 2024-02-11 15:34:50 +01:00
crc.go lint(all): fix issues of errorlint etc (#1037) 2023-11-15 20:51:52 +01:00
driver.go build(go, deps): switch to Go 1.22 and update modules (#1093) 2024-11-01 12:54:20 +01:00
driver_test.go test: try to stabilize eventer tests (#1066) 2024-02-13 10:33:46 +01:00
pitch.go Build(v2): revert move to v2 subfolder (#932) 2023-05-29 19:23:28 +02:00
pitch_test.go test(all): switch to test package stretchr testify (#1006) 2023-10-20 10:27:09 +02:00

README.md

Tello

This package contains the Gobot driver for the Ryze Tello drone, sold by DJI.

For more information on this drone, go to: https://www.ryzerobotics.com/tello

How to Install

Please refer to the main README.md

How to Use

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.

Here is a sample of how you initialize and use the driver:

package main

import (
  "fmt"
  "time"

  "gobot.io/x/gobot/v2"
  "gobot.io/x/gobot/v2/platforms/dji/tello"
)

func main() {
  drone := tello.NewDriver("8888")

  work := func() {
    drone.TakeOff()

    gobot.After(5*time.Second, func() {
      drone.Land()
    })
  }

  robot := gobot.NewRobot("tello",
    []gobot.Connection{},
    []gobot.Device{drone},
    work,
  )

  if err := robot.Start(); err != nil {
		panic(err)
	}
}

Telo Edu driver

If you are planning to connect to the edu version of the tello, please use the NewDriverWithIP driver instead

drone := tello.NewDriverWithIP("192.168.10.1", "8888")

References

This driver could not exist without the awesome members of the unofficial Tello forum:

https://tellopilots.com/forums/tello-development.8/

Special thanks to @Kragrathea who figured out a LOT of the packets and code as implemented in C#: https://github.com/Kragrathea/TelloPC

Also thanks to @microlinux with the Python library which served as the first example for the Tello community: https://github.com/microlinux/tello

Thank you to bluejune for the https://bitbucket.org/PingguSoft/pytello repo, especially the Wireshark Lua dissector which has proven indispensable.