mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 10:21:19 +03:00
Modified all iDistance sensors to return float.
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
@ -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