damiafuentes / DJITelloPy

DJI Tello drone python interface using the official Tello SDK. Feel free to contribute!
MIT License
1.26k stars 493 forks source link

Error when using go_xyz_speed() #191

Closed JcYBalaBalA closed 1 year ago

JcYBalaBalA commented 1 year ago

I run into this error whenever I am using the go_xyz_speed with -10 15 0 26, like go_xyz_speed(-10, 15, 0, 26). there is a error return "out of range" I do not know reason. In Document (https://djitellopy.readthedocs.io/en/latest/tello/#djitellopy.tello.Tello.go_xyz_speed) image these parameters -10 15 0 26 are right

M4GNV5 commented 1 year ago

According to the Tello SDK user guide: Note: “x”, “y”, and “z” values can’t be set between -20 – 20 simultaneously

i.e. there is a minimum distance required for this command to work. Try go_xyz_speed(-20, 13, 0, 26) instead