mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 11:49:42 +08:00
misc
This commit is contained in:
@ -215,12 +215,12 @@ int CAbstractFSController::PerformAutoExposure()
|
||||
bIsLastValueOverflow = bIsValueOverflow;
|
||||
fLastExposureTime = fTempExposureTime;
|
||||
|
||||
if (iExposureTime > 30000)
|
||||
if (iExposureTime > 120000)
|
||||
{
|
||||
bFlagIsAutoExposureOK = false;
|
||||
bFlagIsAutoExposureFailed = true;
|
||||
float fPredictedExposureTime = 30000;
|
||||
iRes = m_pFSCtrl->SetExposureTime(30000);
|
||||
float fPredictedExposureTime = 120000;
|
||||
iRes = m_pFSCtrl->SetExposureTime(120000);
|
||||
if (iRes != 0)
|
||||
{
|
||||
qDebug() << "Err:PerformAutoExposure Failed.Exit Code:3";
|
||||
|
@ -283,8 +283,6 @@ int CMainDataGrabber::GrabOnceFinished_Dark()
|
||||
|
||||
int CMainDataGrabber::StartGrabTimer()
|
||||
{
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////start
|
||||
////check start time
|
||||
// bool bStopWait = false;
|
||||
@ -296,11 +294,9 @@ int CMainDataGrabber::StartGrabTimer()
|
||||
// bStopWait = true;
|
||||
// }
|
||||
// }
|
||||
|
||||
//start
|
||||
//int iIntervalInMS =m_struAcqTime.qtInterval.hour()*3600*1000+ m_struAcqTime.qtInterval.minute()*60*1000+ m_struAcqTime.qtInterval.second()*1000;
|
||||
//m_GrabTimer->start(3000);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////test
|
||||
// m_iFlagIsCapturing = true;
|
||||
// emit SignalStartGrabOnce();
|
||||
@ -317,8 +313,6 @@ int CMainDataGrabber::StartGrabTimer()
|
||||
// QThread::msleep(1000);
|
||||
// }
|
||||
// qDebug() << "Allgrab stopped" << " Thread ID:" <<2;
|
||||
|
||||
|
||||
////final test code eat my ass
|
||||
// m_iFlagIsCapturing = 1;
|
||||
//
|
||||
@ -381,7 +375,9 @@ int CMainDataGrabber::GrabOnceFinished()
|
||||
for (int i=0;i< m_struAcqPosSetting.iTotalPosition-1;i++)
|
||||
{
|
||||
////move to
|
||||
// m_ctrlLS.ILMES_MoveToPos(i+1);
|
||||
qDebug()<<"Start ILMES_MoveToPos:"<<i+1;
|
||||
m_ctrlLS.ILMES_MoveToPos(i+1);
|
||||
qDebug() << "Stop ILMES_MoveToPos:" << i + 1;
|
||||
m_struAcqPosSetting.iPosition[i + 1];
|
||||
m_iFlagIsCapturing_Signal = 1;
|
||||
emit SignalStartGrabOnce_Signal();
|
||||
@ -392,7 +388,9 @@ int CMainDataGrabber::GrabOnceFinished()
|
||||
|
||||
|
||||
////move to
|
||||
// m_ctrlLS.ILMES_MoveToPos(0);
|
||||
qDebug() << "Start ILMES_MoveToPos:" << 0;
|
||||
m_ctrlLS.ILMES_MoveToPos(0);
|
||||
qDebug() << "Stop ILMES_MoveToPos:" << 0;
|
||||
m_struAcqPosSetting.iPosition[0];
|
||||
m_iFlagIsCapturing_Dark = 1;
|
||||
emit SignalStartGrabOnce_Dark();
|
||||
|
@ -57,14 +57,18 @@ void Scheduler::StartAsPlanned()
|
||||
|
||||
int Scheduler::OnTimeCounter()
|
||||
{
|
||||
|
||||
QTime qtTime = QTime::currentTime();
|
||||
if (m_struAcqTime.qtStartTime <= qtTime && qtTime < m_struAcqTime.qtStopTime)
|
||||
{
|
||||
return 1;
|
||||
qDebug() << "Non working time. Idling......";
|
||||
qDebug() << "it's time to work...work work.";
|
||||
emit SignalGrabOnce();
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
system("gpio write 1 0");//<2F>豸<EFBFBD>ϵ<EFBFBD>
|
||||
qDebug() << "gpio write 1 0......"<<endl;
|
||||
qDebug() << "Non working time. Idling......";
|
||||
return 0;
|
||||
}
|
||||
|
||||
emit SignalGrabOnce();
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user