获取waypointV2MissionOperator实例失败
0
按照GSDemo的实例获取waypointV2MissionOperator和waypointMissionOperator,同样的方法和逻辑,waypointMissionOperator可以获取成功,就算是没连飞机也会有NOT_SUPPORTED,V2就不行,一直返回是null值,请问可能是什么原因呢呢?SDK版本是4.14.1
获取实例代码:
public WaypointV2MissionOperator getWaypointV2MissionOperator() {
if (waypointV2MissionOperator == null) {
MissionControl missionControl = DJISDKManager.getInstance().getMissionControl();
if (missionControl != null) {
waypointV2MissionOperator = missionControl.getWaypointMissionV2Operator();
}
}
return waypointV2MissionOperator;
} public WaypointMissionOperator getWaypointMissionOperator() { if (waypointMissionOperator == null) {
MissionControl missionControl = DJISDKManager.getInstance().getMissionControl();
if (missionControl != null) {
waypointMissionOperator = missionControl.getWaypointMissionOperator();
}
}
return waypointMissionOperator;
}
|
|
|
|