summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ai/test_ai.cc
diff options
context:
space:
mode:
authordufourj2005-05-06 08:58:15 +0000
committerdufourj2005-05-06 08:58:15 +0000
commit9994761107b21577732a4926bf1f2d847ed00913 (patch)
treee601ec85342e40ea4a4b6b6e29f724aac16c92bf /2005/i/robert/src/ai/test_ai.cc
parent73a8910c6b5cb221534d788f72e2e7ab73210ca8 (diff)
RC Config :
correction d'un petit bug de config Ai : update qui sont "censé" fonctionner de manière à renvoyer l'état des buffer de proto suppression de log
Diffstat (limited to '2005/i/robert/src/ai/test_ai.cc')
-rw-r--r--2005/i/robert/src/ai/test_ai.cc24
1 files changed, 14 insertions, 10 deletions
diff --git a/2005/i/robert/src/ai/test_ai.cc b/2005/i/robert/src/ai/test_ai.cc
index da34917..2b7bbbb 100644
--- a/2005/i/robert/src/ai/test_ai.cc
+++ b/2005/i/robert/src/ai/test_ai.cc
@@ -74,21 +74,25 @@ main (int argc, char **argv)
// Gestion des différents cas/types de robot
if (++i > argc)
throw std::runtime_error ("syntax error");
- if (argv[i][0] == '0')
- {
+ switch (argv[i][0])
+ {
+ case '0':
// Pour un robot qui n'est pas fiable en
// asservissement
ai_.initBalNonFiable();
- // XXX Différents types d'ai
- }
- if (argv[i][0] == '1')
- {
+ break;
+ case '1':
ai_.initBalFiable ();
- }
- if (argv[i][0] == '2')
- {
+ break;
+ case '2':
ai_.initTest ();
- }
+ break;
+ case '3':
+ ai_.runProtectFond ();
+ break;
+ default:
+ throw std::runtime_error ("Param inconnue");
+ }
break;
case 'j':
if(++i > argc)