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

@ -50,7 +50,7 @@ HCSR04::getDistance(HCSR04_U unit)
return hcsr04_get_distance(m_hcsr04, unit);
}
int
float
HCSR04::getDistance()
{
return getDistance(HCSR04_CM);

View File

@ -76,7 +76,7 @@ class HCSR04 : virtual public iDistance {
*
* @return distance measured in cm.
*/
virtual int getDistance();
float getDistance();
private:
hcsr04_context m_hcsr04;
HCSR04(const HCSR04& src) { /* do not create copied constructor */ }