summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/motor/test_motor.cc
diff options
context:
space:
mode:
authorhaller2005-05-05 11:19:32 +0000
committerhaller2005-05-05 11:19:32 +0000
commitf8eabcc39b158563ebea7f1130e7c57368a6d047 (patch)
treefbf0a96529e87d98151ca222e3dd5ace3529f565 /2005/i/robert/src/motor/test_motor.cc
parent3c8df984f59a60c209b606c58f1fbdc0e98a69cb (diff)
Retrait de log (floodage...)
remonter de setAccel
Diffstat (limited to '2005/i/robert/src/motor/test_motor.cc')
-rw-r--r--2005/i/robert/src/motor/test_motor.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/2005/i/robert/src/motor/test_motor.cc b/2005/i/robert/src/motor/test_motor.cc
index bc44f02..137e355 100644
--- a/2005/i/robert/src/motor/test_motor.cc
+++ b/2005/i/robert/src/motor/test_motor.cc
@@ -107,6 +107,11 @@ main (int argc, char **argv)
case 'C':
std::cout << "Couleur Sélectionné: " << (motor.colorState() ? "Rouge" : "Vert") << std::endl;
break;
+ case 'A':
+ if(++i > argc)
+ throw std::runtime_error("syntax error");
+ motor.setAccel(strtol(argv[0], 0, 10));
+ break;
case 'L':
while(!motor.idle())
{