-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
We want to use PSDK to detect if there is an H30T connected with S1 spotlight on DJI Matrice 400 with dual gimbal mount.
We connected H30T on mount position 1 and S1 on mount position 2. Then, we used
DjiCameraManager_GetCameraType(mountPosition, &cameraType);
in
E_DjiCameraType cameraType;
E_DjiMountPosition mountPosition;
returnCode = DjiCameraManager_Init();
if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) {
USER_LOG_ERROR("Init camera manager failed, error code: 0x%08X\r\n", returnCode);
}
for (int j = 0; j < sizeof(s_cameraMountPosList) / sizeof(s_cameraMountPosList[0]); j++)
{
mountPosition = s_cameraMountPosList[j];
USER_LOG_INFO("--> Step 2: Get camera type and version");
returnCode = DjiCameraManager_GetCameraType(mountPosition, &cameraType);
if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) {
USER_LOG_ERROR("Get mounted position %d camera's type failed, error code: 0x%08X\r\n",
mountPosition, returnCode);
}
for (int i = 0; i < sizeof(s_cameraTypeStrList) / sizeof(s_cameraTypeStrList[0]); i++) {
if (s_cameraTypeStrList[i].cameraType == cameraType) {
USER_LOG_INFO("Mounted position %d camera's type is %s",
mountPosition,
s_cameraTypeStrList[i].cameraTypeStr);
}
}
}
to detect the connected camera and spotlight. However, it seems like it cannot detect the S1 spotlight as shown in the log below
5.492 core-[Info] dji_core.c:338 Start dji sdk application
5.494 cmu-[Error] dji_camera_manager.c:205 Invalid license!
5.495 user-[Error] application.c:329 Init camera manager failed, error code: 0x000000E0
5.496 user-[Info] application.c:336 --> Step 2: Get camera type and version
5.497 cmu-[Error] dji_camera_manager.c:466 Get Mount position 0 camera device id failed,error code: 0x0000000lX.
5.499 user-[Error] application.c:339 Get mounted position 0 camera's type failed, error code: 0x00000000
5.501 user-[Info] application.c:345 Mounted position 0 camera's type is Unknown
5.502 user-[Info] application.c:336 --> Step 2: Get camera type and version
5.507 linker-[Warn] dji_protocol_v3.c:326 protocol frame crc16 error, exp:0x5F43 cur:0x4FEE
5.563 user-[Info] application.c:345 Mounted position 1 camera's type is H30T Camera
5.564 user-[Info] application.c:336 --> Step 2: Get camera type and version
7.572 cmu-[Error] dji_camera_manager.c:487 Get mount position 2 camera version error,error code: 0x0000000lX.
7.574 cmu-[Error] dji_camera_manager.c:489 Execution timeout. Suggestion : Please contact DJI for help.
>>> 7.575 user-[Error] application.c:339 Get mounted position 2 camera's type failed, error code: 0x080777BC
7.577 user-[Info] application.c:345 Mounted position 2 camera's type is H30T Camera
7.578 user-[Info] application.c:336 --> Step 2: Get camera type and version
7.638 cmu-[Error] dji_camera_manager.c:501 version: PSDK 3.x
7.639 user-[Info] application.c:345 Mounted position 3 camera's type is Unknown
Questions:
- How can we detect if the S1 spotlight is connected?
- What is error code 0x080777BC when trying to get the camera type.
Metadata
Metadata
Assignees
Labels
No labels