Added initial interfaces and some sensors implementing them

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Stefanescu
2018-06-12 18:46:49 +03:00
committed by Mihai Tudor Panu
parent 6bf21a23e7
commit f035470822
102 changed files with 1183 additions and 182 deletions

View File

@ -55,6 +55,11 @@ float OTP538U::ambientTemperature()
return temp;
}
float OTP538U::getTemperature()
{
return ambientTemperature();
}
float OTP538U::objectTemperature()
{
float temp = 0;

View File

@ -25,6 +25,7 @@
#include <string>
#include <otp538u.h>
#include <interfaces/iTemperature.hpp>
namespace upm {
@ -73,7 +74,7 @@ namespace upm {
* @image html otp538u.jpg
* @snippet otp538u.cxx Interesting
*/
class OTP538U {
class OTP538U : virtual public iTemperature {
public:
/**
* OTP538U constructor
@ -96,6 +97,13 @@ namespace upm {
*/
float ambientTemperature();
/**
* Gets the ambient temperature in Celsius
*
* @return Ambient temperature
*/
virtual float getTemperature();
/**
* Gets the object temperature in Celsius
*