Commit 6a6c6717 authored by Thiago C. Santini's avatar Thiago C. Santini

Removes parallel port synchronization test stuff

parent c95694e1
...@@ -259,8 +259,6 @@ void ImageAcquisition::frameCallbackInternal(char *pixelBuffer, size_t input, do ...@@ -259,8 +259,6 @@ void ImageAcquisition::frameCallbackInternal(char *pixelBuffer, size_t input, do
latestSlaveFrame.copyTo(entry.fieldFrame); latestSlaveFrame.copyTo(entry.fieldFrame);
slaveMutex.unlock(); slaveMutex.unlock();
Scalar m = mean(entry.leftEyeFrame);
gIntensity = m[0];
entry.incIdx(); entry.incIdx();
emit imageAcquisitionDone(entry); emit imageAcquisitionDone(entry);
} }
......
...@@ -67,9 +67,11 @@ void ParallelPort::poll() ...@@ -67,9 +67,11 @@ void ParallelPort::poll()
return; return;
if (log->is_open()) { if (log->is_open()) {
WORD wData = fpInp32(888); if (hInpOutDll) {
//*log << gTimer.timestamp() << "\t" << wData << std::endl; WORD wData = fpInp32(888);
*log << gTimer.timestamp() << "," << wData << "," << gIntensity << std::endl; *log << gTimer.timestamp() << "\t" << wData << std::endl;
}
} }
} }
...@@ -50,4 +50,3 @@ GlobalTimer gTimer; ...@@ -50,4 +50,3 @@ GlobalTimer gTimer;
QString gBinaryPath = ""; QString gBinaryPath = "";
QString gCurrentSubjectName = ""; QString gCurrentSubjectName = "";
QString gFileIndexStr = "0000"; QString gFileIndexStr = "0000";
std::atomic<unsigned int> gIntensity = 0;
...@@ -23,7 +23,6 @@ void exitBanner(); ...@@ -23,7 +23,6 @@ void exitBanner();
extern QString gBinaryPath; extern QString gBinaryPath;
extern QString gCurrentSubjectName; extern QString gCurrentSubjectName;
extern QString gFileIndexStr; extern QString gFileIndexStr;
extern std::atomic<unsigned int> gIntensity;
extern GlobalTimer gTimer; // Only valid after first frame has been received! extern GlobalTimer gTimer; // Only valid after first frame has been received!
void logMessages(QtMsgType type, const QMessageLogContext &context, const QString &msg); void logMessages(QtMsgType type, const QMessageLogContext &context, const QString &msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment