Page 1 of 1

How to make the quadricopter fly to a specified coordinate?

Posted: 25 Dec 2019, 03:27
by wode
I use five native mobile robots: quadricopters in my scene. And i try to make the quadricopters fly to a specified coordinate but i cannot do this. I only can control the direction and velocity of quadricopter. However, when i want the quadricopter fly to some specified positions, i cannot get the direction and velocity of quadricopter in real time.

Then i try to set the position of the quadricopter's Quadricopter_target to the specified coordinate, but when simulation starts, Quadricopter_target's position restored.

So how can i make the quadricopter fly to a specified coordinate?
Thanks for your reply.

Re: How to make the quadricopter fly to a specified coordinate?

Posted: 27 Dec 2019, 16:53
by fferri
wode wrote: 25 Dec 2019, 03:27 Then i try to set the position of the quadricopter's Quadricopter_target to the specified coordinate, but when simulation starts, Quadricopter_target's position restored.
That's how it is meant to work: you set the target position by moving Quadricopter_target object. It should work also if setting that position before simulation start.

However you can modify the embedded script of Quadricopter to make it behave as you wish.