multirotor fly in straight line #4497
Replies: 2 comments 5 replies
-
Just give it -1 in the Z. You are telling it to crash into the ground with a 0 value for z in your moveByPositionAsync call |
Beta Was this translation helpful? Give feedback.
-
Well, 40 m/s is 90 miles per hour so I’m not sure what speed you are
attempting but my guess is the system is over correcting as it uses look
ahead. You need to look at how SimpleFlight works, as it is not a robust
flight control system. There are few systems I know of which could operate
a quad copter at 90 miles per hour.
To fix your issue, you would need to reduce your speed to somewhere around
20.
We have successfully operated a drone at 25 m/s before in AirSim but have
moved away from the Position Controller as we have found a number of
artifacts that are undesireable.
…On Mon, Apr 25, 2022 at 12:51 PM Lukas Gradl ***@***.***> wrote:
Starting Z in settings file is 0,
unfortunately my drone is required to fly alongside a car so I can't
reduce its speed and puttingz to -2 by itself leads to the same result.
even -20 won't do. I tried -100, which saves the drone from crashing but
sincerely screws up the flight path
—
Reply to this email directly, view it on GitHub
<#4497 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHVHRHLUS2OZPGNVN7FMAGLVG3EP7ANCNFSM5UIZBUMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am literally just trying to fly in a straight line.
I am using moveToPositionAsync(200,0,0,40) so i expected the drone to just fly 200 meters in x-direction and 0 in y- and z-direction. However the drone keeps dropping until it eventually crashes into the ground along its path. I have also tried moveByVelocityAsync, moveByVelocityZBodyFrameAsync and moveByVelocityBodyFrameAsync (whatever the difference between these 3 is --> is there no documentation or can i just not find it?) where i also set the z-velocity to 0, resulting in the drone crashing into the ground again (which is flat by the way). I tried changing the PhysicsEngineName setting in the settings.json to "ExternalPhysicsEngine" as suggested in another post (#2570), which resulted in the drone not moving at all anymore (as to be expected tbh).
Any help is appreciated. Kinda losing my mind over something this basic. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions