Camera class for controlling camera and gimbal-related functions available through open protocol. More...
#include <DJI_Camera.h>
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) | |
CoreAPI * | getApi () 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 | |
CoreAPI * | api |
Camera class for controlling camera and gimbal-related functions available through open protocol.
Definition at line 22 of file DJI_Camera.h.
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.
Camera::Camera | ( | CoreAPI * | ControlAPI = 0 | ) |
Definition at line 16 of file DJI_Camera.cpp.
CoreAPI * Camera::getApi | ( | ) | const |
Definition at line 65 of file DJI_Camera.cpp.
GimbalData Camera::getGimbal | ( | ) | const |
Definition at line 37 of file DJI_Camera.cpp.
float32_t Camera::getPitch | ( | ) | const |
Definition at line 43 of file DJI_Camera.cpp.
float32_t Camera::getRoll | ( | ) | const |
Definition at line 41 of file DJI_Camera.cpp.
float32_t Camera::getYaw | ( | ) | const |
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 | ) |
Definition at line 18 of file DJI_Camera.cpp.
void Camera::setGimbalAngle | ( | GimbalAngleData * | data | ) |
Definition at line 24 of file DJI_Camera.cpp.
void Camera::setGimbalSpeed | ( | GimbalSpeedData * | data | ) |
Definition at line 30 of file DJI_Camera.cpp.
CoreAPI* DJI::onboardSDK::Camera::api [private] |
Definition at line 56 of file DJI_Camera.h.