ardrone-autonomy icon indicating copy to clipboard operation
ardrone-autonomy copied to clipboard

Translation and rotation with the go function from the Controller class?

Open imayukh opened this issue 11 years ago • 2 comments

Has anyone tried to use the go command from the controller class with a translation and a rotation? If yes, How did it work out?

I am having problems implementing it. The drone becomes unstable and starts to spin about the Z axis sort of like a spinning top inside a hemisphere.

Note: I am using an A.R. Drone 2.0 My ground is not very well textured

imayukh avatar Sep 22 '14 21:09 imayukh

I think it only worked well for small rotations while moving (a couple degrees), no sharp turns for example. The current control approach is fairly basic, and to achieve more complex things (like the drone moving along a spline curve) would probably require to add a feed forward to the control.

Then there is the possibility of a bug in the code :-) I might just be mixing some control commands wrong :)

eschnou avatar Sep 24 '14 07:09 eschnou

So i tried this

mission.takeoff() .zero() .hover(500) .altitude(1.3) .go({y: 0.5,yaw: 0}) .go({y: -0.5,yaw: 90}) .go({y: 0.5,yaw: 0}) .go({y: -0.5,yaw: 90}) .land();

and it worked out pretty well leaving aside a bit of drift along x I'll need to look through my original code once again. Thank you.

imayukh avatar Sep 24 '14 21:09 imayukh