Merge remote-tracking branch 'origin/zhangzhuo'

This commit is contained in:
xin
2022-02-28 16:49:15 +08:00
2 changed files with 6 additions and 6 deletions

View File

@ -226,7 +226,7 @@ int CAbstractFSController::PerformAutoExposure()
dFactor = dTemp / (iDeviceDepth * m_fsInfo.fMaxFactor); dFactor = dTemp / (iDeviceDepth * m_fsInfo.fMaxFactor);
iExposureTime = (float)(iExposureTime / dFactor); iExposureTime = (float)(iExposureTime / dFactor);
} }
if (/*fExposureTime > 100 || */iExposureTime < 10) if (/*fExposureTime > 100 || */iExposureTime < m_daDeviceAttr.iMinIntegrationTimeInMS)
{ {
bFlagIsAutoExposureOK = false; bFlagIsAutoExposureOK = false;
bFlagIsAutoExposureFailed = true; bFlagIsAutoExposureFailed = true;
@ -236,12 +236,12 @@ int CAbstractFSController::PerformAutoExposure()
bIsLastValueOverflow = bIsValueOverflow; bIsLastValueOverflow = bIsValueOverflow;
fLastExposureTime = fTempExposureTime; fLastExposureTime = fTempExposureTime;
if (iExposureTime > 120000) if (iExposureTime > m_daDeviceAttr.iMaxIntegrationTimeInMS - 1)
{ {
bFlagIsAutoExposureOK = false; bFlagIsAutoExposureOK = false;
bFlagIsAutoExposureFailed = true; bFlagIsAutoExposureFailed = true;
float fPredictedExposureTime = 120000; float fPredictedExposureTime = m_daDeviceAttr.iMaxIntegrationTimeInMS-1;
iRes = m_pFSCtrl->SetExposureTime(120000); iRes = m_pFSCtrl->SetExposureTime(m_daDeviceAttr.iMaxIntegrationTimeInMS-1);
if (iRes != 0) if (iRes != 0)
{ {
qDebug() << "Err:PerformAutoExposure Failed.Exit Code:3" << " Thread ID:" << m_iThreadID; qDebug() << "Err:PerformAutoExposure Failed.Exit Code:3" << " Thread ID:" << m_iThreadID;
@ -250,7 +250,7 @@ int CAbstractFSController::PerformAutoExposure()
else else
{ {
//qDebug() << "Warning:PerformAutoExposure exceed max integration time.Will be limited to 30sec"; //qDebug() << "Warning:PerformAutoExposure exceed max integration time.Will be limited to 30sec";
qDebug() << "Warning:PerformAutoExposure exceed max integration time.Will be limited to " << m_daDeviceAttr.iMaxIntegrationTimeInMS << "MS" << " Thread ID:" << m_iThreadID; qDebug() << "Warning:PerformAutoExposure exceed max integration time.Will be limited to " << m_daDeviceAttr.iMaxIntegrationTimeInMS-1 << "MS" << " Thread ID:" << m_iThreadID;
} }
bFlagIsOverMaxExposureTime = true; bFlagIsOverMaxExposureTime = true;
break; break;

View File

@ -499,7 +499,7 @@ int CMainDataGrabber::GrabOnceFinished()
//emit SignalPushOneDataFrame(vecData); //emit SignalPushOneDataFrame(vecData);
m_pmduUploader->SetData(vecData); m_pmduUploader->SetData(vecData);
// emit SignalPushOneDataFrame(); emit SignalPushOneDataFrame();
m_pdfpSaver->SetData(vecData); m_pdfpSaver->SetData(vecData);
m_pdfpSaver->WriteDataFile(); m_pdfpSaver->WriteDataFile();
m_iFlagIsCapturing = 0; m_iFlagIsCapturing = 0;