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:
committed by
Mihai Tudor Panu
parent
ddcc4f467e
commit
864e1eb073
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user