From ac7a3ff340bcbbcb43318d7ace513806882b309c Mon Sep 17 00:00:00 2001 From: dufourj Date: Thu, 5 May 2005 13:58:19 +0000 Subject: Ai du premier match : rectangle --- 2005/i/robert/src/ai/ai.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '2005/i/robert/src/ai/ai.cc') 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; } -- cgit v1.2.3