mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
Fixed maxsonarez sensor returning distance in inches insted of cm
This commit is contained in:
parent
551a86ee8c
commit
e73afa43b6
@ -65,6 +65,5 @@ int MAXSONAREZ::inches()
|
|||||||
|
|
||||||
int MAXSONAREZ::getDistance()
|
int MAXSONAREZ::getDistance()
|
||||||
{
|
{
|
||||||
// TODO: call static conversion first.
|
return (inches() * 2.54);
|
||||||
return inches();
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user