Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

Need help with finishing a curve routine

forrestblade

Member
Joined
Apr 27, 2019
Messages
7
Reaction score
0
I know basically how the curve command works albiet my crap math skills. I have the drone flying in a circle with this curve command

Code:
curve 70 70 0 140 0 0 50
curve -70 -70 0 -140 0 0 50


Can someone help figure out how to now do a circle in counter clockwise? I ultimately am trying to do a figure 8 routine but I cannot seem to figure out the right values
 
These 2 commands will make a Tello do a circle counter-clockwise at the same height (z=0) with the speed of 50:
curve 70 -70 0 140 0 0 50
curve -70 70 0 -140 0 0 50
Here's my picture explaining the coordinates: How to use curve x1 y1 z1 x2 y2 z2 speed command
Hmm, I'm pretty sure I tried this yesterday in a sudden stroke of genius but I got a error saying the radius was too large. Lol. I'll try again and let you know how it goes.
 
Sweet! Yeah this works, I had my values for 140 incorrectly absoluted(idk if that's a word but it sounds sweet.)

Here are my commands for a figure 8 solution with a few flips in between.

Code:
const commands = [
    'command',
    'battery?',
    'time?',
    'takeoff',
    'flip f',
    'curve 70 70 0 140 0 0 60',
    'flip b',
    'curve -70 -70 0 -140 0 0 60',
    'flip l',
    'curve -70 70 0 -140 0 0 60',
    'flip r',
    'curve 70 -70 0 140 0 0 60',
    'flip f',
    'land'
]
 

Members online

No members online now.

Forum statistics

Threads
5,695
Messages
39,954
Members
17,052
Latest member
Madrid