microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.51k stars 4.6k forks source link

Probably wrong description to the function moveByVelocityZBodyFameAsync() #4944

Open LeightonWang opened 8 months ago

LeightonWang commented 8 months ago

Bug report

What's the issue you encountered?

The description to the function moveByVelocityBodyFrameAsync() is: error_bodyFrame As the docs say, the parameter z is the desired $z$ value in local NED frame of the vehicle. So when I was trying to use this function to control the drone to fly in a fixed height, I set z=0. However, this makes the drone fall right to the ground. After I changed z to the height of the global NED frame, the flight performed just as I expected.

So I wondered if the description to the parameter z is wrong (sorry if it was for my poor English or understanding :P)

How can the issue be reproduced?

Just take off the drone and call the function with parameter z=0