DJI Onboard SDK  4.0
gimbal_manager_sync_sample.hpp
Go to the documentation of this file.
1 
30 #ifndef ONBOARDSDK_GIMBAL_MANAGER_SYNC_SAMPLE_HPP
31 #define ONBOARDSDK_GIMBAL_MANAGER_SYNC_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  GimbalManagerSyncSample(Vehicle* vehiclePtr);
44 
46 
47  public:
48  ErrorCode::ErrorCodeType resetSyncSample(PayloadIndexType index);
49 
50  ErrorCode::ErrorCodeType rotateSyncSample(PayloadIndexType index,
51  GimbalModule::Rotation rotation);
52 
53  GimbalSingleData getGimbalData(PayloadIndexType index);
54 
55  private:
56  Vehicle* vehicle;
57 };
58 
59 #endif // ONBOARDSDK_GIMBAL_MANAGER_SYNC_SAMPLE_HPP
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
gimbal manager sync sample
Definition: gimbal_manager_sync_sample.hpp:41
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.