PSDK航线任务 waypoint3.0和waypoint2.0差异较大,怎么兼容?
Completed在解析waypoint3.0的KMZ航线文件的时候,发现航线任务的“动作”,包含了拍照、录频等操作的设置参数,
问题1:waypoint2.0没有这些设置参数,那是否意味着waypoint2.0航线任务,需要自己手动实现拍照和录频?
问题2:如何从无人机上下载拍照和录频的文件,并且文件名如何对应上航点(因为waypoint2.0没有图片文件名的设置参数)?
下面是waypoint2.0的T_DJIWaypointV2CameraActuatorParam 的参数:
```
typedef struct {
/**
* The type of Actuator.see "E_DJIWaypointV2ActionActuatorType"
*/
uint8_t actuatorType;
/**
* The index of actuator. It is valid when the diagnostics is related
* to camera or gimbal and the connected product has multiple gimbals and
* cameras.
*/
uint8_t actuatorIndex;
union {
/**
* The camera actuator param, It is valid only when the
* ``DJIWaypointV2Action_DJIWaypointV2Actuator_type``
* is ``DJIWaypointV2MissionV2_DJIWaypointV2ActionActuatorType_Camera``.
*/
T_DJIWaypointV2CameraActuatorParam cameraActuatorParam;
/**
* Parameters for gimbal actuator. It is valid only when the
* ``DJIWaypointV2Action_DJIWaypointV2Actuator_type``
* is ``DJIWaypointV2MissionV2_DJIWaypointV2ActionActuatorType_Gimbal``.
*/
T_DJIWaypointV2GimbalActuatorParam gimbalActuatorParam;
/**
* Parameters for aircraft control actuator. It is valid only when the
* ``DJIWaypointV2Action_DJIWaypointV2Actuator_type``
* is
* ``DJIWaypointV2MissionV2_DJIWaypointV2ActionActuatorType_AircraftControl``.
*/
T_DJIWaypointV2AircraftControlParam aircraftControlActuatorParam;
};
} T_DJIWaypointV2Actuator;
typedef struct {
/**
* The operation type of camera actuator.
* See
* ``DJIWaypointV2MissionV2_DJIWaypointV2ActionActuatorCameraOperationType``.
*/
uint16_t operationType;
union {
/**
* The parameters for camera focus operation. It is valid only when
* ``DJIWaypointV2Action_DJIWaypointV2CameraActuatorParam_operationType``
* is
* ``DJIWaypointV2MissionV2_DJIWaypointV2ActionActuatorCameraOperationType_Focus``
*/
T_DJIWaypointV2CameraFocusParam focusParam;
/**
* The parameters for camera focus length operation. It is valid only when
* ``DJIWaypointV2Action_DJIWaypointV2CameraActuatorParam_operationType``
* is
* ``DJIWaypointV2MissionV2_DJIWaypointV2ActionActuatorCameraOperationType_FocalLength``
*/
T_DJIWaypointV2CameraFocalLengthParam zoomParam;
};
} T_DJIWaypointV2CameraActuatorParam;
```
-
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 1.支持拍照和录像,需要自行设置触发器,见附图。 2.利用航点任务状态回调看下飞机是在哪个航点,然后再调用DjiCameraManager_SetCustomExpandName这个接口设置名字就可以 下载媒体文件可以查阅以下文档:https://developer.dji.com/doc/payload-sdk-tutorial/cn/function-set/basic-function/basic-camera-management.html#%E4%BD%BF%E7%94%A8%E7%9B%B8%E6%9C%BA%E7%AE%A1%E7%90%86%E5%8A%9F%E8%83%BD 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持 -
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 暂无示例,需要开发者自行实现。T_DjiReturnCodeDjiWaypointV2_RegisterMissionStateCallback这个方法,您可以查阅以下文档了解下:5.18 航点任务(waypoint_mission)(https://sdk-forum.dji.net/hc/zh-cn/articles/6394363512089) 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持
Please sign in to leave a comment.
Comments
3 comments