summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/motor/test_motor.cc
diff options
context:
space:
mode:
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())
{