From 792e6bf0b476a778e3b3fb4fcdb3aa4202654175 Mon Sep 17 00:00:00 2001 From: haller Date: Wed, 4 May 2005 11:35:46 +0000 Subject: Codage de getFd --- 2005/i/robert/src/motor/motor.cc | 6 ++++++ 2005/i/robert/src/motor/motor.hh | 2 ++ 2 files changed, 8 insertions(+) (limited to '2005/i/robert/src/motor') diff --git a/2005/i/robert/src/motor/motor.cc b/2005/i/robert/src/motor/motor.cc index a9f90bf..fb4a6dd 100644 --- a/2005/i/robert/src/motor/motor.cc +++ b/2005/i/robert/src/motor/motor.cc @@ -178,6 +178,12 @@ void Motor::wait(int timeout) asserv_.wait(timeout); } +/// Récupère le File Descriptor +int Motor::getFd(void) +{ + return asserv_.getFd(); +} + bool Motor::jackState(void) { pinUpdated_ = false; diff --git a/2005/i/robert/src/motor/motor.hh b/2005/i/robert/src/motor/motor.hh index 6080850..79af4d8 100644 --- a/2005/i/robert/src/motor/motor.hh +++ b/2005/i/robert/src/motor/motor.hh @@ -93,6 +93,8 @@ class Motor : public Asserv::Receiver bool sync(void); /// On attend... void wait(int timeout); + /// Récupère le File Descriptor + int getFd(void); /// Retoure l'état du jack (false entrée et true sortie) bool jackState(void); /// Retourne la couleur selectionné -- cgit v1.2.3