DJI Payload SDK  1.5.3
Data Structures | Enumerations
psdk_cmdset_camera.h File Reference

This file defines the payload SDK camera command set. More...

#include <psdk_typedef.h>
#include <psdk_core.h>

Go to the source code of this file.

Data Structures

struct  T_PsdkCameraSetModeReq
 Set camera work mode command request data structure. More...
 
struct  T_PsdkCameraSetModeAck
 Set camera work mode command ack data structure. More...
 
struct  T_PsdkCameraGetModeReq
 Get camera work mode command request data structure. More...
 
struct  T_PsdkCameraGetModeAck
 Get camera work mode command ack data structure. More...
 
struct  T_PsdkCameraShootPhotoReq
 Shoot photo command request data structure. More...
 
struct  T_PsdkCameraShootPhotoAck
 Shoot photo command ack data structure. More...
 
struct  T_PsdkCameraGetShootPhotoStateReq
 Get shoot photo state command request data structure. More...
 
struct  T_PsdkCameraGetShootPhotoStateAck
 Get shoot photo state command ack data structure. More...
 
struct  T_PsdkCameraSetShootPhotoModeReq
 Set shoot photo mode command request data structure. More...
 
struct  T_PsdkCameraSetShootPhotoModeAck
 Set shoot photo mode command ack data structure. More...
 
struct  T_PsdkCameraGetShootPhotoModeReq
 Get shoot photo mode command request data structure. More...
 
struct  T_PsdkCameraGetShootPhotoModeAck
 Get shoot photo mode command ack data structure. More...
 
struct  T_PsdkCameraRecordVideoReq
 Record video action command request data structure. More...
 
struct  T_PsdkCameraRecordVideoAck
 Record video action command ack data structure. More...
 
struct  T_PsdkCameraGetRecordVideoStateReq
 Get record video state command request data structure. More...
 
struct  T_PsdkCameraGetRecordVideoStateAck
 Get record video state command ack data structure. More...
 
struct  T_PsdkCameraGetSDCardStateReq
 Get SD card parameter command request data structure. More...
 
struct  T_PsdkCameraGetSDCardStateAck
 Get SD card parameter command ack data structure. More...
 
struct  T_PsdkCameraFormatSDCardReq
 Format SD card command request data structure. More...
 
struct  T_PsdkCameraFormatSDCardAck
 Get record video state command ack data structure. More...
 
struct  T_PsdkCameraSetSpotMeteringReq
 Set spot metering zone command request data structure. More...
 
struct  T_PsdkCameraSetSpotMeteringAck
 Set spot metering zone command ack data structure. More...
 
struct  T_PsdkCameraGetSpotMeteringReq
 Get spot metering zone command request data structure. More...
 
struct  T_PsdkCameraGetSpotMeteringAck
 Get spot metering zone command ack data structure. More...
 
struct  T_PsdkCameraSetMeteringModeReq
 Set metering mode command request data structure. More...
 
struct  T_PsdkCameraSetMeteringModeAck
 Set metering mode command ack data structure. More...
 
struct  T_PsdkCameraGetMeteringModeReq
 Get metering mode command request data structure. More...
 
struct  T_PsdkCameraGetMeteringModeAck
 Get metering mode command ack data structure. More...
 
struct  T_PsdkCameraSetFocusModeReq
 Set focus mode command request data structure. More...
 
struct  T_PsdkCameraSetFocusModeAck
 Set focus mode command ack data structure. More...
 
struct  T_PsdkCameraGetFocusModeReq
 Get focus mode command request data structure. More...
 
struct  T_PsdkCameraGetFocusModeAck
 Get focus mode command ack data structure. More...
 
struct  T_PsdkCameraSetFocusZoneReq
 Set focus zone command request data structure. More...
 
struct  T_PsdkCameraSetFocusZoneAck
 Set focus zone command ack data structure. More...
 
struct  T_PsdkCameraGetFocusZoneReq
 Get focus zone command request data structure. More...
 
struct  T_PsdkCameraGetFocusZoneAck
 Get focus zone command ack data structure. More...
 
struct  T_PsdkCameraSetDigitalZoomFactorReq
 Set digital zone factor command request data structure. More...
 
struct  T_PsdkCameraSetDigitalZoomFactorAck
 Set digital zone factor command ack data structure. More...
 
struct  T_PsdkCameraGetDigitalZoomFactorReq
 Get digital zone factor command request data structure. More...
 
struct  T_PsdkCameraGetDigitalZoomFactorAck
 Get digital zone factor command ack data structure. More...
 
struct  T_PsdkCameraGetOpticalZoomSpecReq
 Get optical zoom specification command request data structure. More...
 
struct  T_PsdkCameraGetOpticalZoomSpecAck
 Get optical zoom specification command ack data structure. More...
 
struct  T_PsdkCameraSetOpticalZoomFocalLengthReq
 Set optical zoom focal length command request data structure. More...
 
struct  T_PsdkCameraSetOpticalZoomFocalLengthAck
 Set optical zoom focal length command ack data structure. More...
 
struct  T_PsdkCameraGetOpticalZoomFocalLengthReq
 Get optical zoom focal length command request data structure. More...
 
struct  T_PsdkCameraGetOpticalZoomFocalLengthAck
 Get optical zoom focal length command ack data structure. More...
 
struct  T_PsdkCameraGetOpticalZoomFactorReq
 Get optical zoom fator command request data structure. More...
 
struct  T_PsdkCameraGetOpticalZoomFactorAck
 Get optical zoom fator command ack data structure. More...
 
struct  T_PsdkCameraStartContinuousOpticalZoomReq
 Start continuous optical zoom command request data structure. More...
 
struct  T_PsdkCameraStartContinuousOpticalZoomAck
 Start continuous optical zoom command ack data structure. More...
 
struct  T_PsdkCameraStopContinuousOpticalZoomReq
 Stop continuous optical zoom command request data structure. More...
 
struct  T_PsdkCameraStopContinuousOpticalZoomAck
 Stop continuous optical zoom command ack data structure. More...
 
struct  T_PsdkCameraSetFocusAssistantSettingsReq
 Set focus assistant setting command request data structure. More...
 
struct  T_PsdkCameraSetFocusAssistantSettingsAck
 Set focus assistant setting command ack data structure. More...
 
struct  T_PsdkCameraGetFocusAssistantSettingsReq
 Get focus assistant setting command request data structure. More...
 
struct  T_PsdkCameraGetFocusAssistantSettingsAck
 Get focus assistant setting command ack data structure. More...
 
struct  T_PsdkCameraGetFocusRingValueUpperBoundReq
 Get focus ring value upper bound command request data structure. More...
 
struct  T_PsdkCameraGetFocusRingValueUpperBoundAck
 Get focus ring value upper bound command ack data structure. More...
 
struct  T_PsdkCameraSetFocusRingValueReq
 Set focus ring value command request data structure. More...
 
struct  T_PsdkCameraSetFocusRingValueAck
 Set focus ring value command ack data structure. More...
 
struct  T_PsdkCameraGetFocusRingValueReq
 Get focus ring value command request data structure. More...
 
struct  T_PsdkCameraGetFocusRingValueAck
 Get focus ring value command ack data structure. More...
 
struct  T_PsdkCameraGetDigitalZoomSpecReq
 Get digital zoom specification command request data structure. More...
 
struct  T_PsdkCameraGetDigitalZoomSpecAck
 Get digital zoom specification command ack data structure. More...
 
struct  T_PsdkCameraSupportStateReq
 Get camera function support state command request data structure. More...
 
struct  T_PsdkCameraSupportStateAck
 Get camera function support state command ack data structure. More...
 

Enumerations

enum  E_PsdkCameraCmd {
  PSDK_CAMERA_CMD_ID_SET_MODE = 0x01,
  PSDK_CAMERA_CMD_ID_GET_MODE = 0x02,
  PSDK_CAMERA_CMD_ID_SHOOT_PHOTO = 0x03,
  PSDK_CAMERA_CMD_ID_GET_SHOOT_PHOTO_STATE = 0x04,
  PSDK_CAMERA_CMD_ID_SET_SHOOT_PHOTO_MODE = 0x05,
  PSDK_CAMERA_CMD_ID_GET_SHOOT_PHOTO_MODE = 0x06,
  PSDK_CAMERA_CMD_ID_RECORD_VIDEO = 0x07,
  PSDK_CAMERA_CMD_ID_GET_RECORD_VIDEO_STATE = 0x08,
  PSDK_CAMERA_CMD_ID_GET_SDCARD_PARAM = 0x09,
  PSDK_CAMERA_CMD_ID_FORMAT_SDCARD = 0x0A,
  PSDK_CAMERA_CMD_ID_SET_METERING_MODE = 0x20,
  PSDK_CAMERA_CMD_ID_GET_METERING_MODE = 0x21,
  PSDK_CAMERA_CMD_ID_SET_SPOT_METERING = 0x22,
  PSDK_CAMERA_CMD_ID_GET_SPOT_METERING = 0x23,
  PSDK_CAMERA_CMD_ID_SET_FOCUS_MODE = 0x30,
  PSDK_CAMERA_CMD_ID_GET_FOCUS_MODE = 0x31,
  PSDK_CAMERA_CMD_ID_SET_FOCUS_ZONE = 0x32,
  PSDK_CAMERA_CMD_ID_GET_FOCUS_ZONE = 0x33,
  PSDK_CAMERA_CMD_ID_SET_DIGTALZOOM_FACTOR = 0x34,
  PSDK_CAMERA_CMD_ID_GET_DIGTALZOOM_FACTOR = 0x35,
  PSDK_CAMERA_CMD_ID_GET_OPTICALZOOM_SPEC = 0x36,
  PSDK_CAMERA_CMD_ID_SET_OPTICALZOOM_FOCAL_LENGTH = 0x37,
  PSDK_CAMERA_CMD_ID_GET_OPTICALZOOM_FOCAL_LENGTH = 0x38,
  PSDK_CAMERA_CMD_ID_GET_OPTICALZOOM_FACTOR = 0x39,
  PSDK_CAMERA_CMD_ID_START_CONTINUOUS_OPTICAL_ZOOM = 0x40,
  PSDK_CAMERA_CMD_ID_STOP_CONTINUOUS_OPTICAL_ZOOM = 0x41,
  PSDK_CAMERA_CMD_ID_SET_FOCUS_ASSISTANT_SETTING = 0x42,
  PSDK_CAMERA_CMD_ID_GET_FOCUS_ASSISTANT_SETTING = 0x43,
  PSDK_CAMERA_CMD_ID_GET_FOCUS_RING_VALUE_UPPER_BOUND = 0x44,
  PSDK_CAMERA_CMD_ID_SET_FOCUS_RING_VALUE = 0x45,
  PSDK_CAMERA_CMD_ID_GET_FOCUS_RING_VALUE = 0x46,
  PSDK_CAMERA_CMD_ID_GET_DIGITALZOOM_SPEC = 0x47,
  PSDK_CAMERA_CMD_ID_SUPPORT_STATE = 0xFF
}
 Camera Command ID. More...
 
enum  E_PsdkCameraCameraMode {
  PSDK_CAMERA_CAMERA_MODE_SHOOT_PHOTO = 0,
  PSDK_CAMERA_CAMERA_MODE_RECORD_VIDEO = 1
}
 Camera work mode. More...
 
enum  E_PsdkCameraShootPhotoAction {
  PSDK_CAMERA_SHOOT_PHOTO_ACTION_STOP = 0,
  PSDK_CAMERA_SHOOT_PHOTO_ACTION_START = 1
}
 Camera shoot photo action. More...
 
enum  E_PsdkCameraShootPhotoMode {
  PSDK_CAMERA_SHOOT_PHOTO_MODE_SINGLE = 1,
  PSDK_CAMERA_SHOOT_PHOTO_MODE_BURST = 4,
  PSDK_CAMERA_SHOOT_PHOTO_MODE_INTERVAL = 6
}
 Camera shoot photo mode. More...
 
enum  E_PsdkCameraRecordVideoAction {
  PSDK_CAMERA_RECORD_VIDEO_ACTION_STOP = 0,
  PSDK_CAMERA_RECORD_VIDEO_ACTION_START = 1
}
 Camera record video action. More...
 
enum  E_PsdkCameraBurstParam {
  PSDK_CAMERA_BURST_PARAM_2 = 2,
  PSDK_CAMERA_BURST_PARAM_3 = 3,
  PSDK_CAMERA_BURST_PARAM_5 = 5,
  PSDK_CAMERA_BURST_PARAM_7 = 7,
  PSDK_CAMERA_BURST_PARAM_10 = 10
}
 Photo number of burst photographing. More...
 
enum  E_PsdkCameraIntervalParam {
  PSDK_CAMERA_INTERVAL_PARAM_1S = 1,
  PSDK_CAMERA_INTERVAL_PARAM_3S = 3,
  PSDK_CAMERA_INTERVAL_PARAM_5S = 5,
  PSDK_CAMERA_INTERVAL_PARAM_7S = 7,
  PSDK_CAMERA_INTERVAL_PARAM_10S = 10,
  PSDK_CAMERA_INTERVAL_PARAM_15S = 15,
  PSDK_CAMERA_INTERVAL_PARAM_20S = 20,
  PSDK_CAMERA_INTERVAL_PARAM_30S = 30
}
 Time interval of interval photographing. More...
 
enum  E_PsdkCameraFocusMode {
  PSDK_CAMERA_FOCUS_MODE_MANUAL = 0,
  PSDK_CAMERA_FOCUS_MODE_AUTO = 1
}
 Camera focus mode. More...
 
enum  E_PsdkCameraMeteringMode {
  PSDK_CAMERA_METERING_MODE_CENTER = 0,
  PSDK_CAMERA_METERING_MODE_AVERAGE = 1,
  PSDK_CAMERA_METERING_MODE_SPOT = 2
}
 Camera metering mode. More...
 
enum  E_PsdkCameraZoomDirection {
  PSDK_CAMERA_ZOOM_OUT = 0,
  PSDK_CAMERA_ZOOM_IN = 1
}
 Camera zoom mode. More...
 
enum  E_PsdkCameraZoomSpeed {
  PSDK_CAMERA_ZOOM_SPEED_SLOWEST = 72,
  PSDK_CAMERA_ZOOM_SPEED_SLOW = 73,
  PSDK_CAMERA_ZOOM_SPEED_MODERATELY_SLOW = 74,
  PSDK_CAMERA_ZOOM_SPEED_NORMAL = 75,
  PSDK_CAMERA_ZOOM_SPEED_MODERATELY_FAST = 76,
  PSDK_CAMERA_ZOOM_SPEED_FAST = 77,
  PSDK_CAMERA_ZOOM_SPEED_FASTEST = 78
}
 Camera zoom speed. More...
 

Detailed Description

This file defines the payload SDK camera command set.

Version
V1.0.0
Date
2017/11/9

All information contained herein is, and remains, the property of DJI. The intellectual and technical concepts contained herein are proprietary to DJI and may be covered by U.S. and foreign patents, patents in process, and protected by trade secret or copyright law. Dissemination of this information, including but not limited to data and other proprietary material(s) incorporated within the information, in any form, is strictly prohibited without the express written consent of DJI.

If you receive this source code without DJI’s authorization, you may not further disseminate the information, and you must immediately remove the source code and notify DJI of its removal. DJI reserves the right to pursue legal actions against you for any loss(es) or damage(s) caused by your failure to do so.