Added interfaces iEC,iEmg,iClock,iHeartRate,iLineFinder

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
This commit is contained in:
Stefan Andritoiu
2018-06-20 18:24:26 +03:00
committed by Serban Waltter
parent e7820f2831
commit 69464ae93b
22 changed files with 368 additions and 59 deletions

View File

@ -24,6 +24,7 @@
#pragma once
#include <linefinder.h>
#include <interfaces/iLineFinder.hpp>
namespace upm {
/**
@ -51,7 +52,7 @@ namespace upm {
* @image html linefinder.jpg
* @snippet linefinder.cxx Interesting
*/
class LineFinder {
class LineFinder : virtual public iLineFinder {
public:
/**
* Line Finder digital sensor constructor
@ -70,14 +71,14 @@ 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:
/* Disable implicit copy and assignment operators */
@ -87,5 +88,3 @@ namespace upm {
linefinder_context m_linefinder;
};
}