dji_camera_manager.hpp
Go to the documentation of this file.
981 ErrorCode::ErrorCodeType setOpticalZoomFactorSync(PayloadIndexType index, float factor, int timeout);
995 ErrorCode::ErrorCodeType getOpticalZoomFactorSync(PayloadIndexType index, float &factor, int timeout);
1739 ErrorCode::ErrorCodeType startReqFileList(PayloadIndexType index, FileMgr::FileListReqCBType cb, void *userData);
1754 ErrorCode::ErrorCodeType startReqFileData(PayloadIndexType index, int fileIndex, std::string localPath, FileMgr::FileDataReqCBType cb, void *userData);
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
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
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 ¶m, 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
ErrorCode::ErrorCodeType getModeSync(PayloadIndexType index, CameraModule::WorkMode &workingMode, int timeout)
get camera working mode, blocking calls
Definition: dji_camera_manager.cpp:662
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
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 ¶m, 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
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