mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 11:21:12 +03:00
Modified all iDistance sensors to return float.
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
@ -63,7 +63,7 @@ int MAXSONAREZ::inches()
|
||||
return int(volts / m_vI);
|
||||
}
|
||||
|
||||
int MAXSONAREZ::getDistance()
|
||||
float MAXSONAREZ::getDistance()
|
||||
{
|
||||
return (inches() * 2.54);
|
||||
return inches() * 2.54;
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace upm {
|
||||
*
|
||||
* @return Distance to the object in inches
|
||||
*/
|
||||
virtual int getDistance();
|
||||
virtual float getDistance();
|
||||
|
||||
private:
|
||||
mraa_aio_context m_aio;
|
||||
|
Reference in New Issue
Block a user