summaryrefslogtreecommitdiff
path: root/i/marvin/src/ai/ai.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/ai/ai.cc')
-rw-r--r--i/marvin/src/ai/ai.cc29
1 files changed, 28 insertions, 1 deletions
diff --git a/i/marvin/src/ai/ai.cc b/i/marvin/src/ai/ai.cc
index 1ad1df3..a24dcc7 100644
--- a/i/marvin/src/ai/ai.cc
+++ b/i/marvin/src/ai/ai.cc
@@ -1,4 +1,4 @@
-// ai.cc
+// AI.CC
// marvin - programme du robot 2006. {{{
//
// Copyright (C) 2006 Nicolas Haller
@@ -81,3 +81,30 @@ bool Ai::update (void)
}
+/// programme d'homologation du robal
+void Ai::progHomoloRobal(void)
+{
+ /// On init le robal
+ prepare();
+ /// PAF BEGIN!!! (lancer le timer)
+ Timer::startRound();
+ /// on avance un poil parce que le mur c'est mal
+ move(400, 0);
+ /// On tourne XXX
+ rotate(-M_PI/4);
+ /// On cherche au moins une balle (sinon c'est con)
+ barilletLancement();
+ /// XXX Avancer d'une certaine facon pour choper des balles
+ /// XXX Ouais ba y'a encore ddes truc à faire là
+ /// On cherche un tru (repositionnement??)
+ motor_.lockGoodHole();
+ motor_.findHole();
+ /// On trouve un trou, chouette
+ /// Aspirer le trou
+ es_.extraitBalle();
+ /// mettre une baballe
+ es_.deposeBlanche();
+ /// Tourner 3 fois en chantant du Mickael Jackson
+ /// Again....
+ /// Fin du match
+}