From f8eabcc39b158563ebea7f1130e7c57368a6d047 Mon Sep 17 00:00:00 2001 From: haller Date: Thu, 5 May 2005 11:19:32 +0000 Subject: Retrait de log (floodage...) remonter de setAccel --- 2005/i/robert/src/motor/test_motor.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to '2005/i/robert/src/motor/test_motor.cc') 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()) { -- cgit v1.2.3