Updated interfaces and sensors

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Serban Waltter
2018-07-26 18:04:31 +03:00
committed by Mihai Tudor Panu
parent bfdd2c37c0
commit 90524273ec
18 changed files with 44 additions and 63 deletions

View File

@ -74,3 +74,8 @@ float DFRPH::pH(unsigned int samples)
return ph_avg/samples;
}
float DFRPH::getPH()
{
return pH(10);
}

View File

@ -132,6 +132,13 @@ namespace upm {
*/
virtual float pH(unsigned int samples = 15);
/**
* Returns the detected pH value.
*
* @return The pH value detected
*/
virtual float getPH();
private:
/**
* Don't allow copies of this class