summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschodet2004-05-14 17:50:02 +0000
committerschodet2004-05-14 17:50:02 +0000
commitccd442f175f3478ee893125e8c8c2c2915839f46 (patch)
treefa75ee7fb5899733adabef3c144637a793a5e87b
parentd465cf26f27ae2ff8cd336bddc2f0a076a5df546 (diff)
Splitage pour les servos.
-rw-r--r--2004/i/nono/src/qdai/test_robot.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/2004/i/nono/src/qdai/test_robot.cc b/2004/i/nono/src/qdai/test_robot.cc
index 69ed5b8..f2b1de5 100644
--- a/2004/i/nono/src/qdai/test_robot.cc
+++ b/2004/i/nono/src/qdai/test_robot.cc
@@ -28,6 +28,7 @@
#include "io/gpio_servo_pp.h"
#include "io/io_cmd.h"
#include "io/servo.h"
+#include "io/servo_cmd.h"
#include "motor/asserv.h"
#include "motor/motor_cmd.h"
#include "motor/motor.h"
@@ -42,7 +43,7 @@ syntax (void)
{
std::cout <<
"test_robot - teste tout le robot.\n"
- << motorHelp << ioHelp <<
+ << motorHelp << ioHelp << servoHelp <<
" <timeout> attend (ms)\n"
" ? cet ecran d'aide" << std::endl;
}
@@ -59,7 +60,8 @@ main (int argc, char **argv)
int i = 1;
while (i < argc)
{
- if (!ioCmd (argc, argv, i, gc, gspp)
+ if (!ioCmd (argc, argv, i, gc)
+ && !servoCmd (argc, argv, i, gspp)
&& !motorCmd (argc, argv, i, m))
{
switch (argv[i][0])