MSDK V5 RTK模块开启API失效?
Completed目前我按照官方提供的RTK教程https://developer.dji.com/doc/mobile-sdk-tutorial/cn/tutorials/rtk.html 尝试为自己开发的APP实现开启RTK模块,配置RTK,以及获取RTK信号质量。然而按照教程走调用失效,故来咨询。
代码失效描述:下述API调用代码,在DEBUG打断点模式下完全没跳进去函数体,没进函数就跳出了。
boolean isEnabled = true;
RTKCenter.getInstance().setAircraftRTKModuleEnabled(isEnabled,
new CommonCallbacks.CompletionCallback() {
@Override
public void onSuccess() {
LogUtils.e(TAG, "set RTK Module enabled");
}
@Override
public void onFailure(@NonNull IDJIError error) {
LogUtils.e(TAG, "set RTK Module failed");
}
});
RTKCenter.getInstance().getAircraftRTKModuleEnabled(new CommonCallbacks.CompletionCallbackWithParam<Boolean>() {
@Override
public void onSuccess(Boolean aBoolean) {
LogUtils.e(TAG, "RTK Module enabled");
}
@Override
public void onFailure(@NonNull IDJIError error) {
LogUtils.e(TAG, "set RTK Module closed");
}
});
RTKCenter.getInstance().setRTKReferenceStationSource(RTKReferenceStationSource.QX_NETWORK_SERVICE, new CommonCallbacks.CompletionCallback() {
@Override
public void onSuccess() {
}
@Override
public void onFailure(@NonNull IDJIError error) {
}
});
Log信息打印:
I/RTKCenter: (setAircraftRTKModuleEnabled:1) setAircraftRTKModuleEnabled
E/DJIV5/DJINetworkImp@613cc9c: (ut_a:13) timeout
问题背景补充:我在室内进行调试,理论上室内RTK信号比较弱,应该获取不到RTK信号,然而我现在只是打开RTK模块,应该跟室内没关系吧?
-
我的Sample现在无法安装测试了,以前还打得开,现在会报依赖问题,我在这里提问了, https://sdk-forum.dji.net/hc/zh-cn/community/posts/16346290034329-MSDK-V5-DEMO%E5%AE%89%E8%A3%85%E6%8A%A5%E9%94%99
Please sign in to leave a comment.
Comments
7 comments