Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thiago Santini
EyeRec
Commits
6a6c6717
Commit
6a6c6717
authored
May 04, 2016
by
Thiago C. Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes parallel port synchronization test stuff
parent
c95694e1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
src/ImageAcquisition.cpp
src/ImageAcquisition.cpp
+0
-2
src/ParallelPort.cpp
src/ParallelPort.cpp
+5
-3
src/utils.cpp
src/utils.cpp
+0
-1
src/utils.h
src/utils.h
+0
-1
No files found.
src/ImageAcquisition.cpp
View file @
6a6c6717
...
@@ -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
);
}
}
...
...
src/ParallelPort.cpp
View file @
6a6c6717
...
@@ -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
;
}
}
}
}
}
src/utils.cpp
View file @
6a6c6717
...
@@ -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
;
src/utils.h
View file @
6a6c6717
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment