summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/motor/test_motor.cc
diff options
context:
space:
mode:
authorhaller2005-05-04 09:54:27 +0000
committerhaller2005-05-04 09:54:27 +0000
commit8a9fa69f946c53336fbf93c09d68be82dc074fb7 (patch)
tree7d6cee0f87e28a4dae3982a7efd5b5086fb7fa74 /2005/i/robert/src/motor/test_motor.cc
parent1eddebad686d3e290f4eea195b2cd1637ae10fb9 (diff)
Envoie des positions de départ à l'AVR
S L Automatique dans le test_motor
Diffstat (limited to '2005/i/robert/src/motor/test_motor.cc')
-rw-r--r--2005/i/robert/src/motor/test_motor.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/2005/i/robert/src/motor/test_motor.cc b/2005/i/robert/src/motor/test_motor.cc
index e57ff53..bc44f02 100644
--- a/2005/i/robert/src/motor/test_motor.cc
+++ b/2005/i/robert/src/motor/test_motor.cc
@@ -116,9 +116,14 @@ main (int argc, char **argv)
break;
}
motor.sync();
+ while(!motor.idle())
+ {
+ motor.wait(-1);
+ motor.sync();
+ }
break;
}
-
+
case 'w':
{
int stop, t;