mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Fixed maxsonarez sensor returning distance in inches insted of cm
This commit is contained in:

committed by
Stefan Andritoiu

parent
551a86ee8c
commit
e73afa43b6
@ -65,6 +65,5 @@ int MAXSONAREZ::inches()
|
||||
|
||||
int MAXSONAREZ::getDistance()
|
||||
{
|
||||
// TODO: call static conversion first.
|
||||
return inches();
|
||||
return (inches() * 2.54);
|
||||
}
|
||||
|
Reference in New Issue
Block a user