Public Types | Public Member Functions | Private Attributes
DJI::onboardSDK::Camera Class Reference

Camera class for controlling camera and gimbal-related functions available through open protocol. More...

#include <DJI_Camera.h>

List of all members.

Public Types

enum  CAMERA_CODE {
  CODE_GIMBAL_SPEED = 0x1A, CODE_GIMBAL_ANGLE = 0x1B, CODE_CAMERA_SHOT = 0x20, CODE_CAMERA_VIDEO_START = 0x21,
  CODE_CAMERA_VIDEO_STOP = 0x22
}

Public Member Functions

 Camera (CoreAPI *ControlAPI=0)
CoreAPIgetApi () const
GimbalData getGimbal () const
float32_t getPitch () const
float32_t getRoll () const
float32_t getYaw () const
bool isPitchLimit () const
bool isRollLimit () const
bool isYawLimit () const
void setApi (CoreAPI *value)
void setCamera (CAMERA_CODE camera_cmd)
void setGimbalAngle (GimbalAngleData *data)
void setGimbalSpeed (GimbalSpeedData *data)

Private Attributes

CoreAPIapi

Detailed Description

Camera class for controlling camera and gimbal-related functions available through open protocol.

Definition at line 22 of file DJI_Camera.h.


Member Enumeration Documentation

Enumerator:
CODE_GIMBAL_SPEED 
CODE_GIMBAL_ANGLE 
CODE_CAMERA_SHOT 
CODE_CAMERA_VIDEO_START 
CODE_CAMERA_VIDEO_STOP 

Definition at line 25 of file DJI_Camera.h.


Constructor & Destructor Documentation

Camera::Camera ( CoreAPI ControlAPI = 0)

Definition at line 16 of file DJI_Camera.cpp.


Member Function Documentation

CoreAPI * Camera::getApi ( ) const
Note:
Access method

Definition at line 65 of file DJI_Camera.cpp.

Definition at line 37 of file DJI_Camera.cpp.

Definition at line 43 of file DJI_Camera.cpp.

Definition at line 41 of file DJI_Camera.cpp.

Definition at line 39 of file DJI_Camera.cpp.

bool Camera::isPitchLimit ( ) const

Definition at line 58 of file DJI_Camera.cpp.

bool Camera::isRollLimit ( ) const

Definition at line 52 of file DJI_Camera.cpp.

bool Camera::isYawLimit ( ) const

Definition at line 45 of file DJI_Camera.cpp.

void Camera::setApi ( CoreAPI value)

Definition at line 67 of file DJI_Camera.cpp.

void Camera::setCamera ( Camera::CAMERA_CODE  camera_cmd)
Note:
all camera control functions are none-callback function. The setCamera function handles camera-specific tasks (Take picture, Start/stop video)

Definition at line 18 of file DJI_Camera.cpp.

Definition at line 24 of file DJI_Camera.cpp.

Definition at line 30 of file DJI_Camera.cpp.


Member Data Documentation

Definition at line 56 of file DJI_Camera.h.


The documentation for this class was generated from the following files:


dji_sdk_lib
Author(s):
autogenerated on Thu Jun 6 2019 17:55:25