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> 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
@ -81,6 +81,12 @@ float ECEZO::getEC()
|
||||
return ecezo_get_ec(m_ecezo);
|
||||
}
|
||||
|
||||
float ECEZO::getECValue()
|
||||
{
|
||||
ECEZO::update();
|
||||
return ECEZO::getEC();
|
||||
}
|
||||
|
||||
float ECEZO::getTDS()
|
||||
{
|
||||
return ecezo_get_tds(m_ecezo);
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "ecezo.h"
|
||||
#include <interfaces/iEC.hpp>
|
||||
|
||||
namespace upm {
|
||||
/**
|
||||
@ -57,7 +58,7 @@ namespace upm {
|
||||
* @snippet ecezo.cxx Interesting
|
||||
*/
|
||||
|
||||
class ECEZO {
|
||||
class ECEZO : virtual public iEC {
|
||||
public:
|
||||
|
||||
/**
|
||||
@ -127,6 +128,14 @@ namespace upm {
|
||||
*/
|
||||
float getEC();
|
||||
|
||||
/**
|
||||
* Measures and retrieves the Electrical Conductivity (EC)
|
||||
* value in microsiemens. update() is called during this function.
|
||||
*
|
||||
* @return EC value in microsiemens
|
||||
*/
|
||||
virtual float getECValue();
|
||||
|
||||
/**
|
||||
* Retrieve the last measured Total Dissolved solids (TDS) value.
|
||||
* update() must have been called before calling this
|
||||
|
Reference in New Issue
Block a user