Commit d1b8e1ce authored by Philippe Gaussier's avatar Philippe Gaussier
Browse files

Add debug information

parent b7477d6b
......@@ -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");
......
Supports Markdown
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