SMerrony / tello

The tello Go (golang) package is an unofficial, easy-to-use, standalone API for the Ryze Tello® drone.
MIT License
81 stars 21 forks source link

Tello doesn't takeoff #7

Closed filippobottega closed 6 years ago

filippobottega commented 6 years ago

Expected Behavior

Hello, I'have connected my laptop to Tello network and I run the demo code using the debug:

package main
import (
  "log"
  "time"
  "github.com/SMerrony/tello"
)

func main() {
    drone := new(tello.Tello)
  err := drone.ControlConnectDefault()
  if err != nil {
    log.Fatalf("%v", err) 
  }

  drone.TakeOff()
  time.Sleep(10 * time.Second)
  drone.Land()
  drone.ControlDisconnect()
}

Current Behavior

I have no errors from the execution but Tello drone didn't takeoff.

Your Environment

SMerrony commented 6 years ago

The most likely explanation is that the Tello didn't have enough battery to take off. I have noticed that if the battery level is below the set low battery threshold then it will refuse to take off even though it could theoretically fly for a little while.

If that's not the problem get back to me...