You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your code did help me a lot with my current project. What you did is really a nice work. I have a question about moving control commands.
If I send 'ardrone.move3D(1, 0, 0, 0)' once, how far will the drone move forward? Do I need to keep sending this command in a loop in order to keep it moving ahead? I have tried to do it, the drone does move but it moves slowly and shakes. I mean it can't move smoothly. I would appreciate it if you could help me. Thank you.
Daniel
The text was updated successfully, but these errors were encountered:
AR.Drone doesn't move if you send move3D() just once, you should keep sending it.
It is also important to keep the interval of sending the command over 30[ms].
When your drone shows strange behavior, you should decrease the frequency of sending command.
while (1) {
// Key input
// NOTE:cvWaitKey doesn't keep 30ms when a key is pressed !
int key = cvWaitKey(30);
if (key == 0x1b) break;
// Sending a command
if (key == up) move3D(1,0,0,0); // go forward
msleep(30); // Like this, waiting 30[ms]
}
Hi puku0x,
Your code did help me a lot with my current project. What you did is really a nice work. I have a question about moving control commands.
If I send 'ardrone.move3D(1, 0, 0, 0)' once, how far will the drone move forward? Do I need to keep sending this command in a loop in order to keep it moving ahead? I have tried to do it, the drone does move but it moves slowly and shakes. I mean it can't move smoothly. I would appreciate it if you could help me. Thank you.
The text was updated successfully, but these errors were encountered: