((Aircraft) mProduct).getFlightController().getRTK() 获取为null
Completed如上,我想在V4 SDK中获取飞机当前的高度信息,但是这个API获取为空,请问应该怎么获取?
-
我说的是V4 SDK, 我看V4 的demo里面也只是判断了一下是否可用,没有打开RTK的代码,
if (ModuleVerificationUtil.isRTKAvailable()) {
rtk = DJISampleApplication.getAircraftInstance().getFlightController().getRTK();
}
public static boolean isRTKAvailable() {
return isProductModuleAvailable() && isAircraft() && (null != DJISampleApplication.getAircraftInstance()
.getFlightController().getRTK());
}另外无人机开启GPS也是通过SDK开启吗?
Please sign in to leave a comment.
Comments
13 comments