Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philippe Gaussier
Drone FlyMonitor2
Commits
d1b8e1ce
Commit
d1b8e1ce
authored
Mar 26, 2021
by
Philippe Gaussier
Browse files
Add debug information
parent
b7477d6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Com_server/src/DataListener_Keyboard.cpp
View file @
d1b8e1ce
...
...
@@ -36,17 +36,22 @@ void DataListener_Keyboard::run(){
gettimeofday
(
&
end_checkpoint
,
0
);
currentThreadDelay
=
(
end_checkpoint
.
tv_sec
-
front_checkpoint
.
tv_sec
)
*
1000000L
+
(
end_checkpoint
.
tv_usec
-
front_checkpoint
.
tv_usec
);
if
(
currentThreadDelay
>
task_period
){
if
(
currentThreadDelay
>
task_period
)
{
gettimeofday
(
&
front_checkpoint
,
0
);
if
(
currentThreadDelay
>
task_period
+
task_deadline
){
if
(
currentThreadDelay
>
task_period
+
task_deadline
)
{
cout
<<
"keayboard delay issue :
\n
"
;
}
else
{
else
{
cout
<<
"clavier :
\n
"
;
getch_value
=
getch
();
switch
(
getch_value
)
{
// the real value
switch
(
getch_value
)
// the real value
{
// Refresh IHM
case
'r'
:
//DLOG_F(INFO, "Command refresh");
...
...
Write
Preview
Supports
Markdown
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