Index

DJI Tello


Allows user to send flight control commands to DJI Tello. Flight control commands are those used to tell the Tello to take off, land, and or any number of other autonomous flight maneuvers. API Reference

How To Connect

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.

  drone := tello.NewDriver("8888")

How To Use

  package main

  import (
    "fmt"
    "time"

    "gobot.io/x/gobot"
    "gobot.io/x/gobot/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,
    )

    robot.Start()
  }

Compatibility