summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ai/ai.hh
diff options
context:
space:
mode:
authordufourj2005-05-06 19:17:09 +0000
committerdufourj2005-05-06 19:17:09 +0000
commit2f229e93056445ca05e0948ff663d850efcb3566 (patch)
tree6570339311f46f1dd0912576db785c3942cc89b8 /2005/i/robert/src/ai/ai.hh
parent098033352f64f814b6e8586624319855a5982b99 (diff)
Ai
Nettoyage
Diffstat (limited to '2005/i/robert/src/ai/ai.hh')
-rw-r--r--2005/i/robert/src/ai/ai.hh26
1 files changed, 16 insertions, 10 deletions
diff --git a/2005/i/robert/src/ai/ai.hh b/2005/i/robert/src/ai/ai.hh
index b563410..5905156 100644
--- a/2005/i/robert/src/ai/ai.hh
+++ b/2005/i/robert/src/ai/ai.hh
@@ -48,18 +48,20 @@ class Ai
// Paramètre de Ai
const int roundDuration_;
const int vitesseAsc_;
+ // Temps de temporisation
+ const int tempoDebutMatch_;
public:
- /// Constructeur
+ /// Constructeur.
Ai(const Config & config);
+ /// Destructeur.
~Ai (void);
+
// Initialise le robot.
void init (void);
/// Arrète le robot.
void stop (void);
- /// Lance le robot.
- void run (void);
- /// Attend.
+ /// Attend des données (préférez plutôt temporisation).
void wait (int t);
/// Fonction de temporisation
void temporisation (int t);
@@ -83,16 +85,20 @@ class Ai
bool sync (void);
/// Reset la PWM à zéro.
void resetPwm (void);
- /// Initialise le robot pour faire un match (placement).
- void initMatch ();
+
// Balistique non fiable.
- void initBalNonFiable (void);
+ void runBalNonFiable (void);
// Balistique fiable.
- void initBalFiable (void);
+ void runBalFiable (void);
+ // Pour les tests.
+ void runTest (void);
+
+ /// Initialise le robot pour faire un match (placement).
+ void initMatch (void);
+ /// Séquence d'initiailisation simple pour les tests.
+ void initTest (void);
// Va du point de départ au pont pour protéger les quilles.
void protectQuillePont (void);
- // test
- void initTest (void);
void setMaxSpeed (int l, int r);
void setAccel (int a);
void runProtectFond (void);