summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ai
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/ai')
-rw-r--r--2005/i/robert/src/ai/ai.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/2005/i/robert/src/ai/ai.cc b/2005/i/robert/src/ai/ai.cc
index 34eb75d..4ae0184 100644
--- a/2005/i/robert/src/ai/ai.cc
+++ b/2005/i/robert/src/ai/ai.cc
@@ -125,6 +125,7 @@ void Ai::run(void)
// on lance le temps
std::cout << "Lancmeent du match" << std::endl;
Timer::startRound();
+ /*
// On temporise pour laisser Taz sortir
std::cout << "Attente du 15 secondes" << std::endl;
temporisation(15000); ///XXX
@@ -147,7 +148,7 @@ void Ai::run(void)
// On va derière les quilles
std::cout << "GoTo" << std::endl;
goTo(motor_.getX(),motor_.getY() - 150 ,M_PI);
-/* // On set la vitesse à 2
+ // On set la vitesse à 2
int MaxLSpeedConf = motor_.getMaxLSpeed();
std::cout << "Reduction vitesse" << std::endl;
motor_.setMaxSpeed(2, -1);
@@ -158,6 +159,12 @@ void Ai::run(void)
std::cout << "Acceleration vitesse" << std::endl;
motor_.setMaxSpeed(MaxLSpeedConf, -1);
// XXX On temporise et on fait mumuse avec l'ascenceur */
+ temporisation (30000);
+ basic ( 600 );
+ rotation ( - M_PI / 2 );
+ basic ( 300 );
+ rotation ( M_PI );
+ basic ( 450 );
// On a fini notre run
std::cout << "On a fini" << std::endl;
}