summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ai/ai.hh
diff options
context:
space:
mode:
authorhaller2005-04-23 22:33:57 +0000
committerhaller2005-04-23 22:33:57 +0000
commitc2dd6a00399552d0bb39955cba0e6d70f54b6f9c (patch)
treefcf2fc38ef8d2b8569a2478f49c1dc691810c7b9 /2005/i/robert/src/ai/ai.hh
parent4f4b8796d95cdd5e3ba406fe6a08123d17c2a0f5 (diff)
Définition des fonctions
Ebauche pour Ai::run
Diffstat (limited to '2005/i/robert/src/ai/ai.hh')
-rw-r--r--2005/i/robert/src/ai/ai.hh15
1 files changed, 10 insertions, 5 deletions
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