dji_gimbal_manager.hpp
Go to the documentation of this file.
void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
void resetAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
reset the pitch and yaw of the gimbal, non-blocking calls
Definition: dji_gimbal_manager.cpp:136
ErrorCode::ErrorCodeType resetSync(PayloadIndexType index, int timeout)
reset the pitch and yaw of the gimbal, blocking calls
Definition: dji_gimbal_manager.cpp:150
Implementation of gimbal module for payload node.
PayloadIndexType
The payload Index of camera.
Definition: dji_payload_base.hpp:42
ErrorCode::ErrorCodeType rotateSync(PayloadIndexType index, GimbalModule::Rotation rotation, int timeout)
rotate the angle of the gimbal, blocking calls
Definition: dji_gimbal_manager.cpp:175
void rotateAsync(PayloadIndexType index, GimbalModule::Rotation rotation, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
rotate the angle of the gimbal, non-blocking calls
Definition: dji_gimbal_manager.cpp:160
ErrorCode::ErrorCodeType getGimbalModuleIndex(const char *name, uint8_t &index)
get the index of gimbal module, searched by name
Definition: dji_gimbal_manager.cpp:114
ErrorCode::ErrorCodeType getGimbalModuleEnable(PayloadIndexType index, bool &enable)
get the enable status of gimbal module, searched by index
Definition: dji_gimbal_manager.cpp:125
ErrorCode::ErrorCodeType initGimbalModule(PayloadIndexType index, const char *name)
init the gimbal module
Definition: dji_gimbal_manager.cpp:70
ErrorCode::ErrorCodeType getGimbalModuleName(PayloadIndexType index, std::string &name)
get the name of gimbal module, searched by index
Definition: dji_gimbal_manager.cpp:103
void deinitAllGimbalModule(void)
deinit all the gimbal modules
Definition: dji_gimbal_manager.cpp:96
Definition: dji_ack.cpp:38
ErrorCode::ErrorCodeType deinitGimbalModule(PayloadIndexType index)
Deinit the gimbal module. It is a opposite operation to initGimbalModule. It means this gimbal will d...
Definition: dji_gimbal_manager.cpp:84