Modified all iDistance sensors to return float.

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
Serban Waltter
2018-06-27 14:28:00 +03:00
parent 9653ef27b8
commit 39515cb8ee
15 changed files with 17 additions and 17 deletions

View File

@ -63,7 +63,7 @@ int MAXSONAREZ::inches()
return int(volts / m_vI);
}
int MAXSONAREZ::getDistance()
float MAXSONAREZ::getDistance()
{
return (inches() * 2.54);
return inches() * 2.54;
}

View File

@ -96,7 +96,7 @@ namespace upm {
*
* @return Distance to the object in inches
*/
virtual int getDistance();
virtual float getDistance();
private:
mraa_aio_context m_aio;