Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Tallon
tao-rt-test-doxygen
Commits
d927eac6
Commit
d927eac6
authored
Dec 10, 2021
by
Éric Thiébaut
Browse files
Add debug messages to follow progresses
parent
9a1ac593
Changes
1
Hide whitespace changes
Inline
Side-by-side
andor/andor-server.c
View file @
d927eac6
...
...
@@ -283,6 +283,10 @@ int main(
// Define accesspoint.
sprintf
(
group
,
"Andor%ld"
,
devnum
);
sprintf
(
accesspoint
,
"TAO:%s"
,
group
);
if
(
debuglevel
>
0
)
{
fprintf
(
stderr
,
"%s: group=
\"
%s
\"
, accesspoint=
\"
%s
\"\n
"
,
progname
,
group
,
accesspoint
);
}
// Open the camera device. The camera state is set to "initializing" until
// the worker thread has started.
...
...
@@ -293,6 +297,9 @@ int main(
tao_report_errors
();
return
EXIT_FAILURE
;
}
if
(
debuglevel
>
0
)
{
fprintf
(
stderr
,
"%s: camera device %ld now open
\n
"
,
progname
,
devnum
);
}
// Retrieve initial configuration. Make sure to synchronize the actual
// configuration after any changes in case some parameters are not exactly
...
...
@@ -312,7 +319,8 @@ int main(
tao_report_errors
();
return
EXIT_FAILURE
;
}
//FIXME: andor_print_camera_configuration(stdout, dev);
fprintf
(
stderr
,
"%s: camera configuration has been retrieved
\n
"
,
progname
);
}
// Create the virtual frame-grabber and reflect the camera settings in the
...
...
@@ -327,6 +335,10 @@ int main(
tao_report_errors
();
return
EXIT_FAILURE
;
}
if
(
debuglevel
>
0
)
{
fprintf
(
stderr
,
"%s: virtual frame grabber created with %d buffers
\n
"
,
progname
,
nframes
);
}
shcam
=
tao_get_framegrabber_shared_camera
(
vfg
);
wrlock_shared_camera
();
(
void
)
tao_reflect_camera_information
(
shcam
,
dev
);
...
...
@@ -336,6 +348,10 @@ int main(
tao_report_errors
();
return
EXIT_FAILURE
;
}
if
(
debuglevel
>
0
)
{
fprintf
(
stderr
,
"%s: shared camera information has been updated
\n
"
,
progname
);
}
// Publish shmid of shared camera.
shmid
=
tao_get_shared_camera_shmid
(
shcam
);
...
...
@@ -359,6 +375,9 @@ int main(
tao_report_errors
();
return
EXIT_FAILURE
;
}
if
(
debuglevel
>
0
)
{
fprintf
(
stderr
,
"%s: XPA server created
\n
"
,
progname
);
}
// Start the image processing thread and wait until it starts.
tao_status
status
=
TAO_OK
;
...
...
@@ -401,6 +420,9 @@ int main(
}
// Finally run the server.
if
(
debuglevel
>
0
)
{
fprintf
(
stderr
,
"%s: now staring XPA server...
\n
"
,
progname
);
}
srv
->
debuglevel
=
debuglevel
;
int
tic
=
1
;
while
(
!
quitting
&&
status
==
TAO_OK
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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