【问题标题】:Waypoint mission is not Pausing航点任务没有暂停
【发布时间】:2019-05-29 07:03:53
【问题描述】:

onExecutionUpdate 中,我正在检查isWaypointReached 的状态。如果状态为 false,则执行将停止,并且在此之后不会从 onExecutionUpdate 回调中提供任何更新。

@Override

public void onExecutionUpdate(final WaypointMissionExecutionEvent executionEvent) {

    int waypoint_size = executionEvent.getProgress().totalWaypointCount;
    int target_waypoint_index = executionEvent.getProgress().targetWaypointIndex;

    if (waypoint_size - 1 == target_waypoint_index) {
        if (executionEvent.getProgress().isWaypointReached == true) {
            if (executionEvent.getProgress().executeState.toString().equals("FINISHED_ACTION")) {
                setResultToToast("Aircraft reached at waypoint location");
                stopWaypointMission();
            }
        }

    } else {
        if (executionEvent.getProgress().isWaypointReached == true) {
            if (executionEvent.getProgress().executeState.toString().equals("BEGIN_ACTION")) {
                setResultToToast("aircraft reached at location " + "" + target_waypoint_index);
                pauseWaypointMission();
            }
        }

    }

}

2019-05-29 12:03:28.442 12792-12834/? E/exe 事件:cur state=EXECUTING 预状态=EXECUTING 进度=总计数=2 目标索引=0 已达到= false state=INITIALIZING 错误=null

2019-05-29 12:03:28.443 12792-12834/? E/waypoint_reached: false

【问题讨论】:

    标签: android dji-sdk


    【解决方案1】:

    您正在开发哪个 dji sdk? MSDK OSDK?

    对于 DJI 任务规划,存在大量错误。所以你必须显示你收到的错误信息,例如

    0xE9    Point data not enough
    0xEA    WayPoint mission data not enough
    0xEB    WayPoints not enough
    

    对于我的情况,我通过调用 Mission::stop 来让无人机停下来。它回答我点不够。内部的 ACK 卡住的可能性很大。我目前正在与 DJI 联络以解决此问题。

    如果您能提供准确的描述和您的错误代码,我可以帮助您获得解决方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-04
      • 2014-11-04
      • 2015-03-26
      • 1970-01-01
      • 2022-11-17
      • 2013-05-20
      • 2017-02-15
      相关资源
      最近更新 更多