summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/motor/motor.hh
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/motor/motor.hh')
-rw-r--r--2005/i/robert/src/motor/motor.hh11
1 files changed, 9 insertions, 2 deletions
diff --git a/2005/i/robert/src/motor/motor.hh b/2005/i/robert/src/motor/motor.hh
index 60eb504..1ab092a 100644
--- a/2005/i/robert/src/motor/motor.hh
+++ b/2005/i/robert/src/motor/motor.hh
@@ -34,6 +34,8 @@ class Motor : public Asserv::Receiver
private:
/// Communication avec l'asservissement
Asserv asserv_;
+ /// Système de log
+ Log log_;
/// position
double posX_;
double posY_;
@@ -42,8 +44,11 @@ class Motor : public Asserv::Receiver
/// Etat des commandes
bool idle_;
/// Paramètre de conf
- int pStatPosition;
- int pStatMotor;
+ int pStatPosition_;
+ int pStatMotor_;
+ /// Etat du port d'entrée
+ int pinState_;
+ bool pinUpdated_;
public:
/// Constructeur
@@ -72,6 +77,8 @@ class Motor : public Asserv::Receiver
bool sync(void);
/// On attend...
void wait(int timeout);
+ /// Retoure l'état du jack (false entrée et true sortie)
+ bool jackState(void);
/// déclaration des fonctions de receiver
void receiveCounter (double lMotor, double rMotor);
void receivePosX (double xPos);