![]() |
DJI Payload SDK
1.5.0
|
This file provides the API functions for handling the gimbal commands from the mobile app (ground) via PSDK port. More...
Macros | |
#define | MODLE_FUNC_GIMCMD(name) |
Macro used to define gimbal command process function. More... | |
#define | GIMCMD(name) GimbalCmd_##name |
Function name macro. More... | |
Functions | |
static E_PsdkStat | GimbalCmd_GetGimbalState (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Gimbal State command. More... | |
static E_PsdkStat | GimbalCmd_SetGimbalMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Set Gimbal Mode command. More... | |
static E_PsdkStat | GimbalCmd_ReturnHead (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Gimbal Return Head command. More... | |
static E_PsdkStat | GimbalCmd_ControlSpeed (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Control Gimbal Angle Speed command. More... | |
static E_PsdkStat | GimbalCmd_ControlAngle (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle control gimbal angle command. More... | |
static E_PsdkStat | GimbalCmd_ControlJointAngle (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle control gimbal joint angle command. More... | |
static E_PsdkStat | GimbalCmd_StartCalibration (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Gimbal Calibration command. More... | |
static E_PsdkStat | GimbalCmd_GetCaliProgress (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Gimbal Calibration Progress command. More... | |
static E_PsdkStat | GimbalCmd_SupportState (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Gimbal Command Set Support State command. More... | |
E_PsdkStat | PsdkGimbal_Init (T_PsdkUpper *psdkUpper, const T_PsdkGimbalHandler *gimbalHandler) |
Initialize PSDK gimbal commands handling. More... | |
Variables | |
static T_PsdkGimbalHandler | s_gimbalHandler |
gimbal command callback function list More... | |
static uint8_t | s_isSupportGimbal = 0 |
gimbal command support state More... | |
static const T_PsdkProtCmdItem | s_PayloadGimbalCmdList [] |
Gimabl commands process function list. More... | |
This file provides the API functions for handling the gimbal commands from the mobile app (ground) via PSDK port.
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.