DJI Onboard SDK  4.0
gimbal_manager_async_sample.hpp
Go to the documentation of this file.
1 
30 #ifndef ONBOARDSDK_GIMBAL_MANAGER_ASYNC_SAMPLE_HPP
31 #define ONBOARDSDK_GIMBAL_MANAGER_ASYNC_SAMPLE_HPP
32 
33 #include <dji_vehicle.hpp>
34 #include "dji_gimbal_manager.hpp"
35 #include "dji_telemetry.hpp"
36 
37 using namespace DJI::OSDK::Telemetry;
38 
42  public:
43  GimbalManagerAsyncSample(Vehicle* vehiclePtr);
44 
46 
47  public:
48  void resetAsyncSample(PayloadIndexType index,
49  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
50  UserData userData),
51  UserData userData);
52  void rotateAsyncSample(PayloadIndexType index, GimbalModule::Rotation rotation,
53  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
54  UserData userData),
55  UserData userData);
56 
57  GimbalSingleData getGimbalData(PayloadIndexType index);
58 
59  private:
60  Vehicle* vehicle;
61 };
62 
63 #endif // ONBOARDSDK_GIMBAL_MANAGER_ASYNC_SAMPLE_HPP
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
PayloadIndexType
The payload Index of camera.
Definition: dji_payload_base.hpp:42
Implementation of the manager for gimbal module.
Enumeration of all telemetry data types, structures and maps.
This namespace encapsulates all available telemetry topics through either Broadcast or Subscribe.
Definition: dji_telemetry.hpp:48
Vehicle API for DJI onboardSDK library.
gimbal manager async sample
Definition: gimbal_manager_async_sample.hpp:41