summaryrefslogtreecommitdiff
path: root/i/marvin/src/motor
diff options
context:
space:
mode:
authorhaller2006-05-24 20:51:29 +0000
committerhaller2006-05-24 20:51:29 +0000
commita6f4b5ecbc52fc438a6c48a8d3a0ef20f34dec90 (patch)
treea6ffa59657a98320d22e5158e52d3240bf986d7a /i/marvin/src/motor
parent7fcd40ef44f7df3db0d26eaef5ee108307aa1881 (diff)
* TestAI qui compile
* Ajout du Makefile.defs du répertoire ai * Ajout d'une fonction getFd dans Motor
Diffstat (limited to 'i/marvin/src/motor')
-rw-r--r--i/marvin/src/motor/motor.cc7
-rw-r--r--i/marvin/src/motor/motor.hh2
2 files changed, 9 insertions, 0 deletions
diff --git a/i/marvin/src/motor/motor.cc b/i/marvin/src/motor/motor.cc
index 2664df0..5f3987a 100644
--- a/i/marvin/src/motor/motor.cc
+++ b/i/marvin/src/motor/motor.cc
@@ -74,6 +74,13 @@ Motor::stop (void)
asserv_.speed (0, 0);
}
+/// get the file descriptor
+int
+Motor::getFd(void)
+{
+ return asserv_.getFd();
+}
+
/// Next seq number.
void
Motor::nextSeq (void)
diff --git a/i/marvin/src/motor/motor.hh b/i/marvin/src/motor/motor.hh
index 5770ebb..7cc7e78 100644
--- a/i/marvin/src/motor/motor.hh
+++ b/i/marvin/src/motor/motor.hh
@@ -54,6 +54,8 @@ class Motor : public Asserv::Receiver
void findHole (void);
/// Stop now.
void stop (void);
+ /// get the file descriptor
+ int getFd(void);
/// Reset.
void reset (void);
private: