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

@ -67,7 +67,7 @@ float URM37::getDistance(int degrees)
return (distance);
}
int URM37::getDistance()
float URM37::getDistance()
{
/* TODO: compilation issue for swig. switched original method to not use default zero parameter. */
return getDistance(0);

View File

@ -129,7 +129,7 @@ namespace upm {
*
* @return The measured distance in cm
*/
virtual int getDistance();
virtual float getDistance();
/**
* Get the temperature measurement. This is only valid in UART mode.