NEW: release DJI Payload-SDK version 3.8.0
This commit is contained in:
@ -46,7 +46,7 @@ PerceptionSample::PerceptionSample()
|
||||
USER_LOG_ERROR("Perception feature will support on later version.");
|
||||
}
|
||||
|
||||
perror("Perception init failed");
|
||||
throw ("Perception init failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -103,10 +103,16 @@ void DjiUser_RunStereoVisionViewSample(void)
|
||||
T_DjiOsalHandler *osalHandler = DjiPlatform_GetOsalHandler();
|
||||
char inputChar;
|
||||
char isQuit;
|
||||
auto *perceptionSample = new PerceptionSample;
|
||||
T_DjiReturnCode returnCode;
|
||||
T_DjiPerceptionCameraParametersPacket cameraParametersPacket = {0};
|
||||
|
||||
PerceptionSample *perceptionSample;
|
||||
try {
|
||||
perceptionSample = new PerceptionSample;
|
||||
} catch (...) {
|
||||
return;
|
||||
}
|
||||
|
||||
returnCode = osalHandler->MutexCreate(&s_stereoImagePacket.mutex);
|
||||
if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) {
|
||||
USER_LOG_ERROR("Crete mutex failed, return code:0x%08X", returnCode);
|
||||
|
||||
Reference in New Issue
Block a user