DJI::OSDK::Gimbal Class Reference
The Gimbal class for controlling gimbal-related functions. More...
#include <dji_gimbal.hpp>
Classes | |
struct | AngleData |
The Angle Data struct for gimbal control. More... | |
struct | SpeedData |
The Speed Data struct for gimbal control. More... | |
Public Types | |
typedef struct DJI::OSDK::Gimbal::AngleData | AngleData |
The Angle Data struct for gimbal control. More... | |
typedef struct DJI::OSDK::Gimbal::SpeedData | SpeedData |
The Speed Data struct for gimbal control. More... | |
Public Member Functions | |
Gimbal (Vehicle *vehicle) | |
void | setAngle (Gimbal::AngleData *data) |
Function for setting Gimbal Angle. More... | |
void | setSpeed (Gimbal::SpeedData *data) |
Function for setting Gimbal Speed. More... | |
Detailed Description
The Gimbal class for controlling gimbal-related functions.
Member Typedef Documentation
◆ AngleData
typedef struct DJI::OSDK::Gimbal::AngleData DJI::OSDK::Gimbal::AngleData |
The Angle Data struct for gimbal control.
The relationship bewteen the angle reference in absolute control mode and gimbal mode configuration in DJI Go App
Gimbal Mode | Roll | Pitch | Yaw | Gimbal Follow UAV's Head |
---|---|---|---|---|
Follow | Ground | Ground | Body | Y |
FPV | N/A | Ground | N/A | Y |
Free | Ground | Ground | Ground | N |
- Note
- Rotating 90 degree in pitch direction will cause gimbal lock problem, in which the value of roll and yaw are not reliable.
- M600 with A3 only supports Ronin-MX/Zenmuse X5 Series/Zenmuse X3/Zenmuse XT when operating gimbal control in angle.
◆ SpeedData
typedef struct DJI::OSDK::Gimbal::SpeedData DJI::OSDK::Gimbal::SpeedData |
The Speed Data struct for gimbal control.
The angle reference frame is same in AngleData free mode.
Member Function Documentation
◆ setAngle()
void DJI::OSDK::Gimbal::setAngle | ( | Gimbal::AngleData * | data | ) |
Function for setting Gimbal Angle.
Define the mode and the angles for the gimbal angle control in the AngleData struct and pass it to setAngle().
- Deprecated:
- This API is deprecated, please use APIs of CameraManager
- Parameters
-
data AngleData struct containing all the angle values, mode and duration
- Returns
- void
◆ setSpeed()
void DJI::OSDK::Gimbal::setSpeed | ( | Gimbal::SpeedData * | data | ) |
Function for setting Gimbal Speed.
Define the rate of change for the gimbal angle in SpeedData struct and pass it to setSpeed();
- Deprecated:
- This API is deprecated, please use APIs of CameraManager
- Parameters
-
data SpeedData struct containing the roll, pitch and yaw rates
- Returns
- void
The documentation for this class was generated from the following files:
- osdk-core/api/inc/dji_gimbal.hpp
- osdk-core/api/src/dji_gimbal.cpp