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

Autopilot wrong direction #3

Closed thaiacepilot closed 6 years ago

thaiacepilot commented 6 years ago

Expected Behavior

Current Behavior

Possible Solution

maybe add Autofly (direction,distance) like scratch or python but can adjust speed ( more than 1m/s ) and more range (more than 5 m) like now ## Steps to Reproduce (for bugs)

Context

many times

Your Environment

thaiacepilot commented 6 years ago

my code for simple testing `package mission import ( "time" "github.com/SMerrony/tello" ) func Basic() { drone := new(tello.Tello) drone.ControlConnectDefault() drone.TakeOff() time.Sleep(5 time.Second) drone.SetHome() time.Sleep(1 time.Second) drone.AutoFlyToXY(0, 2) time.Sleep(1 time.Second) drone.AutoFlyToXY(0, 0) time.Sleep(2 time.Second) drone.Land()

} `

SMerrony commented 6 years ago

You don't actually say above what your problem is.

Anyway, if you checked the error returns from the drone funcs then you might see what your problem is.