mirror of
https://github.com/eclipse/upm.git
synced 2025-07-26 21:51:16 +03:00
Added interfaces iEC,iEmg,iClock,iHeartRate,iLineFinder
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
f035470822
commit
a589f92cec
@ -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