The description to the function moveByVelocityBodyFrameAsync() is:
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
Bug report
What's the issue you encountered?
The description to the function moveByVelocityBodyFrameAsync() is: 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 setz=0
. However, this makes the drone fall right to the ground. After I changedz
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