Getting altitude above sea level
已完成Hello
I’m trying to get the altitude above sea level of the drone.
When I am getting KeyTakeoffLicationAltitude I get a value that is not near to what is displayed on the app.
Example - app says altitude on the ground is 16 m and the key says 65 m
-
You can find the image with the indication here: https://ibb.co/2qmCxm5
I want to obtain the altitude above sea level and not the altitude above takeoff location.
How inaccurate is the normal gps altitude data? -
You can consider using the `RtkMobileStationKey.KeyRTKTakeoffAltitudeInfo` to obtain the altitude of the takeoff point. By adding it to the relative takeoff altitude of the aircraft(KeyAircraftLocation3D), you can calculate the approximate absolute altitude.: How inaccurate is the normal gps altitude data? --I cannot provide you with accurate information because the altitude is obtained by combining latitude, longitude, and barometric pressure readings. -
To obtain the altitude information of RTK, it is recommended to use addRTKLocationInfoListener.(https://developer.dji.com/api-reference-v5/android-api/Components/IRTKCenter/IRTKCenter.html#irtkcenter_addrtklocationinfolistener_inline) This is our packaged interface, which will be more stable. -
Shay Lavi to get take off alt above sea level, use key
KeyRTKTakeoffAltitudeInfo
then calculate aircraft alt same as it is in sample app:
aslAltitude =
GpsUtils.egm96Altitude(
rtkTakeOffLocation + aircraftLocation!!.altitude,
aircraftLocation.latitude,
aircraftLocation.longitude
)before using GpsUtils class, you need to call
GeoidManager.getInstance().init(context)
Spend some time on it, hope it helps. Cheers
请先登录再写评论。
评论
7 条评论