dji_camera_manager.hpp
Go to the documentation of this file.
1 
29 #ifndef ONBOARDSDK_DJI_CAMERA_MANAGER_HPP
30 #define ONBOARDSDK_DJI_CAMERA_MANAGER_HPP
31 
32 #include <vector>
33 #include "dji_camera_module.hpp"
34 #if defined(__linux__)
35 #include "dji_file_mgr.hpp"
36 #endif
37 namespace DJI {
38 namespace OSDK {
39 class FileMgr;
43  public:
44  CameraManager(Vehicle *vehiclePtr);
45 
46  ~CameraManager();
47 
48  public:
58  const char *name);
59 
71 
76  void deinitAllCameraModule(void);
77 
88  std::string &name);
89 
99  uint8_t &index);
100 
111  bool &enable);
112 
113  std::string getCameraVersion(PayloadIndexType index);
114 
115  std::string getFirmwareVersion(PayloadIndexType index);
116  public:
143  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
144  UserData userData);
145 
164  PayloadIndexType index, CameraModule::ShootPhotoMode mode, int timeout);
165 
186  void stopShootPhotoAsync(
187  PayloadIndexType index,
188  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
189  UserData userData);
190 
207  int timeout);
208 
228  PayloadIndexType index, CameraModule::ShootPhotoMode takePhotoMode,
229  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
230  UserData userData);
231 
246  PayloadIndexType index, CameraModule::ShootPhotoMode takePhotoMode,
247  int timeout);
248 
268  PayloadIndexType index,
269  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
270  CameraModule::ShootPhotoMode takePhotoMode,
271  UserData userData),
272  UserData userData);
273 
288  PayloadIndexType index, CameraModule::ShootPhotoMode &takePhotoMode,
289  int timeout);
290 
312  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
313  UserData userData);
314 
329  PayloadIndexType index, CameraModule::PhotoBurstCount count, int timeout);
330 
350  PayloadIndexType index,
351  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
353  UserData userData),
354  UserData userData);
355 
371  int timeout);
372 
393  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
394  UserData userData);
395 
410  PayloadIndexType index, CameraModule::PhotoAEBCount count, int timeout);
411 
431  PayloadIndexType index,
432  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
434  UserData userData),
435  UserData userData);
436 
451  PayloadIndexType index, CameraModule::PhotoAEBCount &count, int timeout);
452 
477  PayloadIndexType index, CameraModule::PhotoIntervalData intervalSetting,
478  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
479  UserData userData);
480 
499  PayloadIndexType index, CameraModule::PhotoIntervalData intervalSetting,
500  int timeout);
501 
522  PayloadIndexType index,
523  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
524  CameraModule::PhotoIntervalData intervalSetting,
525  UserData userData),
526  UserData userData);
527 
542  PayloadIndexType index, CameraModule::PhotoIntervalData &intervalSetting,
543  int timeout);
544 
564  PayloadIndexType index,
565  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
566  UserData userData);
567 
582  int timeout);
583 
602  PayloadIndexType index,
603  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
604  UserData userData);
605 
619  int timeout);
620 
646  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
647  UserData userData),
648  UserData userData);
649 
672  int timeout);
673 
692  void getModeAsync(PayloadIndexType index,
693  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
694  CameraModule::WorkMode workingMode,
695  UserData userData),
696  UserData userData);
697 
712  CameraModule::WorkMode &workingMode,
713  int timeout);
714 
742  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
743  UserData userData),
744  UserData userData);
745 
769  int timeout);
770 
793  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
794  CameraModule::FocusMode focusMode,
795  UserData userData),
796  UserData userData);
797 
815  CameraModule::FocusMode &focusMode,
816  int timeout);
817 
841  void setFocusTargetAsync(
843  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
844  UserData userData);
845 
866  int timeout);
867 
889  void getFocusTargetAsync(
890  PayloadIndexType index,
891  void (*UserCallBack)(ErrorCode::ErrorCodeType,
892  CameraModule::TapFocusPosData tapFocusPos,
893  UserData userData),
894  UserData userData);
895 
914  int timeout);
915 
942  CameraModule::zoomSpeedData zoomSpeed,
943  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
944  UserData userData);
945 
967  CameraModule::zoomSpeedData zoomSpeed, int timeout);
968 
981  ErrorCode::ErrorCodeType setOpticalZoomFactorSync(PayloadIndexType index, float factor, int timeout);
982 
995  ErrorCode::ErrorCodeType getOpticalZoomFactorSync(PayloadIndexType index, float &factor, int timeout);
996 
1016  PayloadIndexType index,
1017  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
1018  UserData userData);
1019 
1034  int timeout);
1035 
1057  PayloadIndexType index, bool param,
1058  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
1059  UserData userData);
1060 
1077  bool param, int timeout);
1078 
1099  PayloadIndexType index,
1100  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, bool param,
1101  UserData userData),
1102  UserData userData);
1103 
1119  bool &param, int timeout);
1120 
1146  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
1147  UserData userData);
1148 
1169  int timeout);
1170 
1190  PayloadIndexType index,
1191  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
1193  UserData userData),
1194  UserData userData);
1195 
1211  int timeout);
1212 
1235  void tapZoomAtTargetAsync(
1237  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
1238  UserData userData);
1239 
1259  int timeout);
1260 
1291  void setExposureModeAsync(
1293  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
1294  UserData userData);
1295 
1323  int timeout);
1324 
1342  void getExposureModeAsync(
1343  PayloadIndexType index,
1344  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
1345  CameraModule::ExposureMode mode, UserData userData),
1346  UserData userData);
1347 
1363  int timeout);
1364 
1388  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
1389  UserData userData),
1390  UserData userData);
1391 
1410  CameraModule::ISO iso, int timeout);
1411 
1430  void getISOAsync(PayloadIndexType index,
1431  void (*UserCallBack)(ErrorCode::ErrorCodeType,
1432  CameraModule::ISO iso,
1433  UserData userData),
1434  UserData userData);
1435 
1450  CameraModule::ISO &iso, int timeout);
1451 
1474  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
1475  UserData userData),
1476  UserData userData);
1477 
1495  CameraModule::Aperture aperture,
1496  int timeout);
1497 
1517  void (*UserCallBack)(ErrorCode::ErrorCodeType,
1518  CameraModule::Aperture aperture,
1519  UserData userData),
1520  UserData userData);
1521 
1536  CameraModule::Aperture &aperture,
1537  int timeout);
1538 
1562  void setShutterSpeedAsync(
1563  PayloadIndexType index, CameraModule::ShutterSpeed shutterSpeed,
1564  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
1565  UserData userData);
1566 
1586  PayloadIndexType index, CameraModule::ShutterSpeed shutterSpeed,
1587  int timeout);
1588 
1607  void getShutterSpeedAsync(
1608  PayloadIndexType index,
1609  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
1610  CameraModule::ShutterSpeed shutterSpeed,
1611  UserData userData),
1612  UserData userData);
1613 
1628  PayloadIndexType index, CameraModule::ShutterSpeed &shutterSpeed,
1629  int timeout);
1630 
1653  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData),
1654  UserData userData);
1655 
1673  int timeout);
1674 
1694  PayloadIndexType index,
1695  void (*UserCallBack)(ErrorCode::ErrorCodeType retCode,
1697  UserData userData),
1698  UserData userData);
1699 
1715  int timeout);
1716 
1727  bool enable, int timeout);
1728 #if defined(__linux__)
1729 
1739  ErrorCode::ErrorCodeType startReqFileList(PayloadIndexType index, FileMgr::FileListReqCBType cb, void *userData);
1740 
1754  ErrorCode::ErrorCodeType startReqFileData(PayloadIndexType index, int fileIndex, std::string localPath, FileMgr::FileDataReqCBType cb, void *userData);
1755 #endif
1756  private:
1757 #if defined(__linux__)
1758  FileMgr *fileMgr;
1759 #endif
1760  std::vector<CameraModule *> cameraModuleVector;
1761  Linker *linker;
1762 
1763  CameraModule *getCameraModule(PayloadIndexType index);
1764  CameraModule *getCameraModule(std::string name);
1765  void m300LensCbInit(Linker *linker);
1766  void m300LensCbDeinit(Linker *linker);
1768  const char *defaultCameraName = "uninitialized_camera";
1769 };
1770 
1771 } // namespace OSDK
1772 } // namespace DJI
1773 
1774 #endif // ONBOARDSDK_DJI_PAYLOAD_MANAGER_HPP
void setShutterSpeedAsync(PayloadIndexType index, CameraModule::ShutterSpeed shutterSpeed, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera shutter value, non-blocking calls
Definition: dji_camera_manager.cpp:1073
uint8_t zoomDirectionData
Zoom direction data used by user, ref to DJI::OSDK::CameraModule::ZoomDirection.
Definition: dji_camera_module.hpp:840
void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
ExposureMode
the photo action of INTERVAL shooting photo mode
Definition: dji_camera_module.hpp:146
void stopRecordVideoAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
stop to take video, non-blocking calls
Definition: dji_camera_manager.cpp:600
ErrorCode::ErrorCodeType deinitCameraModule(PayloadIndexType index)
Deinit the camera module. It is a opposite operation to initCameraModule. It means this camera will d...
Definition: dji_camera_manager.cpp:207
void stopShootPhotoAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
stop to shoot photo, non-blocking calls
Definition: dji_camera_manager.cpp:351
ErrorCode::ErrorCodeType initCameraModule(PayloadIndexType index, const char *name)
init the camera module
Definition: dji_camera_manager.cpp:193
void getPhotoBurstCountAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::PhotoBurstCount count, UserData userData), UserData userData)
Definition: dji_camera_manager.cpp:449
ErrorCode::ErrorCodeType setPhotoAEBCountSync(PayloadIndexType index, CameraModule::PhotoAEBCount count, int timeout)
set the burst count in the AEB take-photo mode, blocking calls
Definition: dji_camera_manager.cpp:488
void getApertureAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType, CameraModule::Aperture aperture, UserData userData), UserData userData)
get camera aperture size value, non-blocking calls
Definition: dji_camera_manager.cpp:1048
void getISOAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType, CameraModule::ISO iso, UserData userData), UserData userData)
get camera iso value, non-blocking calls
Definition: dji_camera_manager.cpp:325
void setExposureModeAsync(PayloadIndexType index, CameraModule::ExposureMode mode, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera exposure mode, non-blocking calls
Definition: dji_camera_manager.cpp:977
The manager of camera module.
Definition: dji_camera_manager.hpp:42
ErrorCode::ErrorCodeType tapZoomAtTargetSync(PayloadIndexType index, CameraModule::TapZoomPosData tapZoomPos, int timeout)
set camera tap zoom point, blocking calls
Definition: dji_camera_manager.cpp:966
ErrorCode::ErrorCodeType getCameraModuleIndex(const char *name, uint8_t &index)
get the index of camera module, searched by name
Definition: dji_camera_manager.cpp:238
void setShootPhotoModeAsync(PayloadIndexType index, CameraModule::ShootPhotoMode takePhotoMode, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set the shoot photo mode, non-blocking calls
Definition: dji_camera_manager.cpp:374
void tapZoomAtTargetAsync(PayloadIndexType index, CameraModule::TapZoomPosData tapZoomPos, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera tap zoom point, non-blocking calls
Definition: dji_camera_manager.cpp:953
ErrorCode::ErrorCodeType getApertureSync(PayloadIndexType index, CameraModule::Aperture &aperture, int timeout)
get camera aperture size value, blocking calls
Definition: dji_camera_manager.cpp:1063
ErrorCode::ErrorCodeType setPhotoTimeIntervalSettingsSync(PayloadIndexType index, CameraModule::PhotoIntervalData intervalSetting, int timeout)
set the parameters in the INTERVAL take-photo mode, blocking calls
Definition: dji_camera_manager.cpp:537
ErrorCode::ErrorCodeType stopShootPhotoSync(PayloadIndexType index, int timeout)
stop to shoot photo, blocking calls
Definition: dji_camera_manager.cpp:364
ErrorCode::ErrorCodeType startReqFileList(PayloadIndexType index, FileMgr::FileListReqCBType cb, void *userData)
start to requeset the filelist data of camera, non-blocking calls
Definition: dji_camera_manager.cpp:1186
void startContinuousOpticalZoomAsync(PayloadIndexType index, CameraModule::zoomDirectionData zoomDirection, CameraModule::zoomSpeedData zoomSpeed, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
start camera optical zooming, non-blocking calls
Definition: dji_camera_manager.cpp:771
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
FocusMode
Definition: dji_camera_module.hpp:200
void setPhotoAEBCountAsync(PayloadIndexType index, CameraModule::PhotoAEBCount count, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set the burst count in the AEB take-photo mode, non-blocking calls
Definition: dji_camera_manager.cpp:475
ErrorCode::ErrorCodeType getPhotoAEBCountSync(PayloadIndexType index, CameraModule::PhotoAEBCount &count, int timeout)
get the burst count in the AEB take-photo mode, blocking calls
Definition: dji_camera_manager.cpp:513
ErrorCode::ErrorCodeType getPhotoIntervalDatasSync(PayloadIndexType index, CameraModule::PhotoIntervalData &intervalSetting, int timeout)
get the parameters in the INTERVAL take-photo mode, blocking calls
Definition: dji_camera_manager.cpp:566
ErrorCode::ErrorCodeType getShootPhotoModeSync(PayloadIndexType index, CameraModule::ShootPhotoMode &takePhotoMode, int timeout)
get the shoot photo mode, blocking calls
Definition: dji_camera_manager.cpp:415
ErrorCode::ErrorCodeType getExposureCompensationSync(PayloadIndexType index, CameraModule::ExposureCompensation &ev, int timeout)
get camera EV value, blocking calls
Definition: dji_camera_manager.cpp:1164
ErrorCode::ErrorCodeType getExposureModeSync(PayloadIndexType index, CameraModule::ExposureMode &mode, int timeout)
get camera exposure mode, blocking calls
Definition: dji_camera_manager.cpp:1015
ErrorCode::ErrorCodeType getPhotoBurstCountSync(PayloadIndexType index, CameraModule::PhotoBurstCount &count, int timeout)
get the burst count in the Burst take-photo mode, blocking calls
Definition: dji_camera_manager.cpp:465
ExposureCompensation
CameraModule exposure compensation.
Definition: dji_camera_module.hpp:342
PayloadIndexType
The payload Index of camera.
Definition: dji_payload_base.hpp:42
void setPhotoBurstCountAsync(PayloadIndexType index, CameraModule::PhotoBurstCount count, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set the burst count in the Burst take-photo mode, non-blocking calls
Definition: dji_camera_manager.cpp:426
ErrorCode::ErrorCodeType setExposureCompensationSync(PayloadIndexType index, CameraModule::ExposureCompensation ev, int timeout)
set camera EV value, blocking calls
Definition: dji_camera_manager.cpp:1137
void getFocusModeAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::FocusMode focusMode, UserData userData), UserData userData)
get camera focus mode, non-blocking calls
Definition: dji_camera_manager.cpp:705
ErrorCode::ErrorCodeType getTapZoomEnabledSync(PayloadIndexType index, bool &param, int timeout)
get camera tap zoom parameters, blocking calls
Definition: dji_camera_manager.cpp:890
void getTapZoomMultiplierAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::TapZoomMultiplierData param, UserData userData), UserData userData)
get camera tap zoom function parameters, non-blocking calls
Definition: dji_camera_manager.cpp:924
2D float point data struct
Definition: dji_camera_module.hpp:935
ErrorCode::ErrorCodeType getModeSync(PayloadIndexType index, CameraModule::WorkMode &workingMode, int timeout)
get camera working mode, blocking calls
Definition: dji_camera_manager.cpp:662
CameraModule of PayloadNode.
Definition: dji_camera_module.hpp:41
void getFocusTargetAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType, CameraModule::TapFocusPosData tapFocusPos, UserData userData), UserData userData)
get camera tap focus target point, non-blocking calls
Definition: dji_camera_manager.cpp:744
ErrorCode::ErrorCodeType stopContinuousOpticalZoomSync(PayloadIndexType index, int timeout)
stop camera optical zooming, blocking calls
Definition: dji_camera_manager.cpp:843
ErrorCode::ErrorCodeType getFocusModeSync(PayloadIndexType index, CameraModule::FocusMode &focusMode, int timeout)
get camera focus mode, blocking calls
Definition: dji_camera_manager.cpp:695
void getShootPhotoModeAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::ShootPhotoMode takePhotoMode, UserData userData), UserData userData)
get the shoot photo mode, non-blocking calls
Definition: dji_camera_manager.cpp:398
ErrorCode::ErrorCodeType getShutterSpeedSync(PayloadIndexType index, CameraModule::ShutterSpeed &shutterSpeed, int timeout)
get camera shutter value, blocking calls
Definition: dji_camera_manager.cpp:1113
void setTapZoomEnabledAsync(PayloadIndexType index, bool param, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera tap zoom function parameters, non-blocking calls
Definition: dji_camera_manager.cpp:853
ErrorCode::ErrorCodeType setISOSync(PayloadIndexType index, CameraModule::ISO iso, int timeout)
set camera iso value, blocking calls
Definition: dji_camera_manager.cpp:314
void getTapZoomEnabledAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, bool param, UserData userData), UserData userData)
get camera tap zoom function parameters, non-blocking calls
Definition: dji_camera_manager.cpp:876
ErrorCode::ErrorCodeType getCameraModuleEnable(PayloadIndexType index, bool &enable)
get the enable status of camera module, searched by index
Definition: dji_camera_manager.cpp:249
void getPhotoAEBCountAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::PhotoAEBCount count, UserData userData), UserData userData)
Definition: dji_camera_manager.cpp:498
void setFocusTargetAsync(PayloadIndexType index, CameraModule::TapFocusPosData tapFocusPos, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera tap focus target point, non-blocking calls
Definition: dji_camera_manager.cpp:720
ErrorCode::ErrorCodeType getOpticalZoomFactorSync(PayloadIndexType index, float &factor, int timeout)
get parameters of camera optical zooming, blocking calls
Definition: dji_camera_manager.cpp:807
void deinitAllCameraModule(void)
deinit all the camera modules
Definition: dji_camera_manager.cpp:220
ShutterSpeed
CameraModule shutter speed values.
Definition: dji_camera_module.hpp:236
ShootPhotoMode
The ShootPhoto mode itself can have several modes. The default value is SINGLE.
Definition: dji_camera_module.hpp:83
PhotoAEBCount
the photo action of INTERVAL shooting photo mode
Definition: dji_camera_module.hpp:156
ErrorCode::ErrorCodeType setShootPhotoModeSync(PayloadIndexType index, CameraModule::ShootPhotoMode takePhotoMode, int timeout)
set the shoot photo mode, blocking calls
Definition: dji_camera_manager.cpp:387
Interval take photo mode setting.
Definition: dji_camera_module.hpp:708
ErrorCode::ErrorCodeType getISOSync(PayloadIndexType index, CameraModule::ISO &iso, int timeout)
get camera iso value, blocking calls
Definition: dji_camera_manager.cpp:340
ErrorCode::ErrorCodeType stopRecordVideoSync(PayloadIndexType index, int timeout)
stop to take video, blocking calls
Definition: dji_camera_manager.cpp:613
ErrorCode::ErrorCodeType setOpticalZoomFactorSync(PayloadIndexType index, float factor, int timeout)
set parameters for camera optical zooming, blocking calls
Definition: dji_camera_manager.cpp:798
ErrorCode::ErrorCodeType getFocusTargetSync(PayloadIndexType index, CameraModule::TapFocusPosData &tapFocusPos, int timeout)
get camera focus point, blocking calls
Definition: dji_camera_manager.cpp:760
void setExposureCompensationAsync(PayloadIndexType index, CameraModule::ExposureCompensation ev, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera EV value, non-blocking calls
Definition: dji_camera_manager.cpp:1124
uint8_t TapZoomMultiplierData
Data struct of tap zoom multiplier used by user. Limit: 1~5.
Definition: dji_camera_module.hpp:915
ISO
CameraModule ISO values.
Definition: dji_camera_module.hpp:309
ErrorCode::ErrorCodeType startContinuousOpticalZoomSync(PayloadIndexType index, CameraModule::zoomDirectionData zoomDirection, CameraModule::zoomSpeedData zoomSpeed, int timeout)
start camera optical zooming, blocking calls
Definition: dji_camera_manager.cpp:786
void getPhotoIntervalDatasAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::PhotoIntervalData intervalSetting, UserData userData), UserData userData)
get the parameters in the INTERVAL take-photo mode, non-blocking calls
Definition: dji_camera_manager.cpp:549
void startShootPhotoAsync(PayloadIndexType index, CameraModule::ShootPhotoMode mode, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
start to shoot photo, non-blocking calls
Definition: dji_camera_manager.cpp:278
void getExposureModeAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::ExposureMode mode, UserData userData), UserData userData)
get camera exposure mode, non-blocking calls
Definition: dji_camera_manager.cpp:1000
ErrorCode::ErrorCodeType getTapZoomMultiplierSync(PayloadIndexType index, CameraModule::TapZoomMultiplierData &param, int timeout)
get camera tap zoom parameters, blocking calls
Definition: dji_camera_manager.cpp:942
void getModeAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::WorkMode workingMode, UserData userData), UserData userData)
get camera working mode, non-blocking calls
Definition: dji_camera_manager.cpp:647
PhotoBurstCount
Definition: dji_camera_module.hpp:172
ErrorCode::ErrorCodeType startReqFileData(PayloadIndexType index, int fileIndex, std::string localPath, FileMgr::FileDataReqCBType cb, void *userData)
start to requeset the files of camera, non-blocking calls
Definition: dji_camera_manager.cpp:1193
void setApertureAsync(PayloadIndexType index, CameraModule::Aperture aperture, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera aperture size value, non-blocking calls
Definition: dji_camera_manager.cpp:1025
ErrorCode::ErrorCodeType setTapZoomMultiplierSync(PayloadIndexType index, CameraModule::TapZoomMultiplierData param, int timeout)
set camera tap zoom parameters, blocking calls
Definition: dji_camera_manager.cpp:913
void setPhotoTimeIntervalSettingsAsync(PayloadIndexType index, CameraModule::PhotoIntervalData intervalSetting, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set the parameters in the INTERVAL take-photo mode, non-blocking calls
Definition: dji_camera_manager.cpp:523
ErrorCode::ErrorCodeType setPhotoBurstCountSync(PayloadIndexType index, CameraModule::PhotoBurstCount count, int timeout)
set the burst count in the Burst take-photo mode, blocking calls
Definition: dji_camera_manager.cpp:439
void getExposureCompensationAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::ExposureCompensation ev, UserData userData), UserData userData)
get camera EV value, non-blocking calls
Definition: dji_camera_manager.cpp:1148
ErrorCode::ErrorCodeType startRecordVideoSync(PayloadIndexType index, int timeout)
start to take video, blocking calls
Definition: dji_camera_manager.cpp:590
void stopContinuousOpticalZoomAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
stop camera optical zooming, non-blocking calls
Definition: dji_camera_manager.cpp:830
uint8_t zoomSpeedData
Zoom speed data used by user, ref to DJI::OSDK::CameraModule::ZoomSpeed.
Definition: dji_camera_module.hpp:845
void setModeAsync(PayloadIndexType index, CameraModule::WorkMode mode, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera working mode, non-blocking calls
Definition: dji_camera_manager.cpp:623
Definition: dji_ack.cpp:38
Implementation of camera module for payload node.
ErrorCode::ErrorCodeType getCameraModuleName(PayloadIndexType index, std::string &name)
get the name of camera module, searched by index
Definition: dji_camera_manager.cpp:227
void setFocusModeAsync(PayloadIndexType index, CameraModule::FocusMode mode, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera focus mode, non-blocking calls
Definition: dji_camera_manager.cpp:672
ErrorCode::ErrorCodeType obtainDownloadRightSync(PayloadIndexType index, bool enable, int timeout)
obtain the download right from camera, blocking calls
Definition: dji_camera_manager.cpp:1175
ErrorCode::ErrorCodeType setModeSync(PayloadIndexType index, CameraModule::WorkMode mode, int timeout)
set camera working mode, blocking calls
Definition: dji_camera_manager.cpp:636
void setTapZoomMultiplierAsync(PayloadIndexType index, CameraModule::TapZoomMultiplierData param, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera tap zoom function parameters, non-blocking calls
Definition: dji_camera_manager.cpp:900
ErrorCode::ErrorCodeType setExposureModeSync(PayloadIndexType index, CameraModule::ExposureMode mode, int timeout)
set camera exposure mode, blocking calls
Definition: dji_camera_manager.cpp:990
WorkMode
CameraModule work modes.
Definition: dji_camera_module.hpp:45
ErrorCode::ErrorCodeType setFocusModeSync(PayloadIndexType index, CameraModule::FocusMode mode, int timeout)
get camera focus mode, blocking calls
Definition: dji_camera_manager.cpp:685
ErrorCode::ErrorCodeType setTapZoomEnabledSync(PayloadIndexType index, bool param, int timeout)
set camera tap zoom parameters, blocking calls
Definition: dji_camera_manager.cpp:866
void getShutterSpeedAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, CameraModule::ShutterSpeed shutterSpeed, UserData userData), UserData userData)
get camera shutter value, non-blocking calls
Definition: dji_camera_manager.cpp:1097
ErrorCode::ErrorCodeType startShootPhotoSync(PayloadIndexType index, CameraModule::ShootPhotoMode mode, int timeout)
start to shoot photo, blocking calls
Definition: dji_camera_manager.cpp:291
ErrorCode::ErrorCodeType setShutterSpeedSync(PayloadIndexType index, CameraModule::ShutterSpeed shutterSpeed, int timeout)
set camera shutter value, blocking calls
Definition: dji_camera_manager.cpp:1086
void startRecordVideoAsync(PayloadIndexType index, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
start to take video, non-blocking calls
Definition: dji_camera_manager.cpp:577
void setISOAsync(PayloadIndexType index, CameraModule::ISO iso, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
set camera iso value, non-blocking calls
Definition: dji_camera_manager.cpp:301
ErrorCode::ErrorCodeType setApertureSync(PayloadIndexType index, CameraModule::Aperture aperture, int timeout)
set camera aperture size value, blocking calls
Definition: dji_camera_manager.cpp:1038
Aperture
CameraModule aperture values.
Definition: dji_camera_module.hpp:451
ErrorCode::ErrorCodeType setFocusTargetSync(PayloadIndexType index, CameraModule::TapFocusPosData tapFocusPos, int timeout)
set camera focus point, blocking calls
Definition: dji_camera_manager.cpp:733