From c2dd6a00399552d0bb39955cba0e6d70f54b6f9c Mon Sep 17 00:00:00 2001 From: haller Date: Sat, 23 Apr 2005 22:33:57 +0000 Subject: Définition des fonctions Ebauche pour Ai::run --- 2005/i/robert/src/ai/ai.hh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to '2005/i/robert/src/ai/ai.hh') diff --git a/2005/i/robert/src/ai/ai.hh b/2005/i/robert/src/ai/ai.hh index b86412e..8261097 100644 --- a/2005/i/robert/src/ai/ai.hh +++ b/2005/i/robert/src/ai/ai.hh @@ -25,6 +25,11 @@ // // }}} +#include "motor/motor.hh" +#include "es/es.hh" +#include "scheduler/scheduler.hh" +#include "config/config.hh" + /// Intelligence (encore plus heu...) artificielle class Ai { @@ -33,12 +38,10 @@ class Ai Motor motor_; Es es_; // Scheduler du robot - Scheduler scheduler_; - // Gpio gpio_; // XXX + scheduler::Scheduler scheduler_; // Paramètre de Ai const int roundDuration_; - // Etat du robot - bool enMouvement; + const int vitesseAsc_; public: /// Constructeur @@ -48,7 +51,7 @@ class Ai /// Arrète le robot. void stop (void); /// Lance le robot. - void run (int strat); + void run (void); protected: /// Lance le robot. void run0 (void); @@ -69,6 +72,8 @@ class Ai void ascenceur (bool monte); /// Désactive les ventouse void ventouses (void); + /// Attend une mise à jour + void update (void); }; #endif // ai_hh -- cgit v1.2.3