Modified all iDistance sensors to return float.

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-06-27 14:28:00 +03:00
committed by Mihai Tudor Panu
parent ddcc4f467e
commit 864e1eb073
15 changed files with 17 additions and 17 deletions

View File

@ -48,7 +48,7 @@ int MB704X::getRange()
return mb704x_get_range(m_mb704x);
}
int MB704X::getDistance()
float MB704X::getDistance()
{
return getRange();
}

View File

@ -90,7 +90,7 @@ namespace upm {
*
* @return Distance to the object in cm
*/
virtual int getDistance();
virtual float getDistance();
protected:
// mb704x device context
mb704x_context m_mb704x;