psdK的航点任务,怎么判断航点任务处于开始和结束状态,
Completed源代码中通过注册回调函数可以监测航点任务的状态,那么运行任务开始函数后DjiWaypointV3_Action(DJI_WAYPOINT_V3_ACTION_START),状态变量是哪个参数 ?
运行任务结束函数后 DjiWaypointV3_Action(DJI_WAYPOINT_V3_ACTION_STOP),状态变量是哪个参数 ?
源码如下:
```
typedef enum {
DJI_WAYPOINT_V3_MISSION_STATE_IDLE = 0, /*!< Waypoint v3 mission in idle state. */
DJI_WAYPOINT_V3_MISSION_STATE_PREPARE = 16, /*!< Waypoint v3 mission in prepare state. */
DJI_WAYPOINT_V3_MISSION_STATE_TRANS_MISSION = 32, /*!< Waypoint v3 mission in trans mission state. */
DJI_WAYPOINT_V3_MISSION_STATE_MISSION = 48, /*!< Waypoint v3 mission in mission state. */
DJI_WAYPOINT_V3_MISSION_STATE_BREAK = 64, /*!< Waypoint v3 mission in break state. */
DJI_WAYPOINT_V3_MISSION_STATE_RESUME = 80, /*!< Waypoint v3 mission in resume state. */
DJI_WAYPOINT_V3_MISSION_STATE_RETURN_FIRSTPOINT = 98, /*!< Waypoint v3 mission in return first point state. */
} E_DjiWaypointV3MissionState;
```
Please sign in to leave a comment.
Comments
1 comment