mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
Added interfaces iEC,iEmg,iClock,iHeartRate,iLineFinder
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
This commit is contained in:

committed by
Serban Waltter

parent
e7820f2831
commit
69464ae93b
@ -25,6 +25,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <mraa/gpio.h>
|
||||
#include <interfaces/iLineFinder.hpp>
|
||||
|
||||
namespace upm {
|
||||
/**
|
||||
@ -53,7 +54,7 @@ namespace upm {
|
||||
* @image html grovelinefinder.jpg
|
||||
* @snippet grovelinefinder.cxx Interesting
|
||||
*/
|
||||
class GroveLineFinder {
|
||||
class GroveLineFinder : virtual public iLineFinder {
|
||||
public:
|
||||
/**
|
||||
* Grove Line Finder digital sensor constructor
|
||||
@ -70,17 +71,15 @@ namespace upm {
|
||||
*
|
||||
* @return True if white is detected
|
||||
*/
|
||||
bool whiteDetected();
|
||||
virtual bool whiteDetected();
|
||||
/**
|
||||
* Determines whether black has been detected
|
||||
*
|
||||
* @return True if black is detected
|
||||
*/
|
||||
bool blackDetected();
|
||||
virtual bool blackDetected();
|
||||
|
||||
private:
|
||||
mraa_gpio_context m_gpio;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user