dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
247 stars 127 forks source link

About height of drone #303

Closed darkangel20156 closed 1 week ago

darkangel20156 commented 2 months ago

When I use KeyAircraftLocation3D to get height of drone, but the result is not true. Specifically, when the real height of drone is 1m, the result is 0.0, and sometimes it is -0.1; -0.2m. image

So I want to know how the height is calculated?

dji-lyt commented 2 months ago

What is the actual height you are referring to? When the aircraft reaches a height of 1 meter after takeoff, does KeyAircraftLocation3D read a height of 0?

Could you please provide us with the likelihood of this issue occurring? And could you also share a short video to confirm the issue's behavior? I would recommend using the example code from MSDK V5, where you can view aircraft diagnostic information and height on the default delay page.

The height from KeyAircraftLocation3D is relative to the takeoff point.

image

darkangel20156 commented 2 months ago

I tested in 7th floor of a building (it is in door, and low GPS, I got GPS level and the result is level_0). When I take off the drone (dji mini 3), if according to the documents, the take-off height is (1.2m) but when I get the altitude value on the screen, the value is not 1.2. In addition to keyLocation3D, I also used KeyAltitude (MSDK 5.6) and the result did not give the exact height of 1.2m.

darkangel20156 commented 1 week ago

I tested with KeyUltrasonicHeight, and the result is more accurate, with an error of about 10 dm. (indoor and low gps) image