summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/es/test_es.cc
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/es/test_es.cc')
-rw-r--r--2005/i/robert/src/es/test_es.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/2005/i/robert/src/es/test_es.cc b/2005/i/robert/src/es/test_es.cc
index 42f681d..630edc6 100644
--- a/2005/i/robert/src/es/test_es.cc
+++ b/2005/i/robert/src/es/test_es.cc
@@ -93,6 +93,10 @@ main (int argc, char **argv)
std::cout << "Le prochain obstacle est " << (es.obsTropPres() ? "TROP PRES." : "LOIN.") << std::endl;
break;
}
+ do
+ {
+ es.sync();
+ }while(!es.ascIsIdle());
break;
}
case 'w':
@@ -106,6 +110,7 @@ main (int argc, char **argv)
{
es.wait (stop - t);
t = Timer::getProgramTime ();
+ es.sync();
}
break;
}