大疆社区
标题:
获取waypointV2MissionOperator实例失败
[打印本页]
作者:
子晔Z
时间:
2021-4-20
标题:
获取waypointV2MissionOperator实例失败
按照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
;
}
作者:
子晔Z
时间:
2021-4-20
或者大伙儿能分享下自己怎么成功获取V2Operator的嘛?谢谢!
作者:
kv886
时间:
2021-4-21
用的什么飞机,V2只支持M300
作者:
dji_temp
时间:
2022-7-7
kv886
2021-4-21 16:46
用的什么飞机,V2只支持M300
真的吗,御air2 也是null
欢迎光临 大疆社区 (https://bbs.dji.com/)
Powered by Discuz! X3.2