summaryrefslogtreecommitdiff
path: root/i/chuck/src/ai
diff options
context:
space:
mode:
authorbecquet2007-05-12 03:50:40 +0000
committerbecquet2007-05-12 03:50:40 +0000
commitc7c965f96621555cfd53802d192f72a12e305f56 (patch)
tree91ca1204ff6b04adf8fc7ab798c6bf95ca0f2c96 /i/chuck/src/ai
parent7b8e674b1e17c3314a7e353c9666bea918455a29 (diff)
Diffstat (limited to 'i/chuck/src/ai')
-rw-r--r--i/chuck/src/ai/ai.cc4
-rw-r--r--i/chuck/src/ai/ai.hh1
2 files changed, 4 insertions, 1 deletions
diff --git a/i/chuck/src/ai/ai.cc b/i/chuck/src/ai/ai.cc
index 5d328c2..b0bc102 100644
--- a/i/chuck/src/ai/ai.cc
+++ b/i/chuck/src/ai/ai.cc
@@ -51,7 +51,7 @@ Ai::~Ai(void)
// On réinitialise
// Initialise les moteurs
// XXX
- motor_.reset ();
+ motor_.reset();
// initialise la carte es
es_.reset ();
// On sync
@@ -137,6 +137,8 @@ Ai::prepare (void)
{
es_.lcdPrint("");
es_.lcdPrint("Prepa match...");
+ coefcolor=es_.setcolorsens();
+ es_.lcdPrint("G ma couleur");
es_.lcdPrint("Inserer Jack");
es_.setOthersStat (10);
while (!update ());
diff --git a/i/chuck/src/ai/ai.hh b/i/chuck/src/ai/ai.hh
index 781935a..b45122a 100644
--- a/i/chuck/src/ai/ai.hh
+++ b/i/chuck/src/ai/ai.hh
@@ -49,6 +49,7 @@ class Ai
const int schedule_time_;
const int reference_sensor_mask_;
bool mustRotate_;
+ const int coefcolor;
public:
/// Constructeur
Ai(const Config & config);