From e73afa43b6f30243f80421bf151b96247f788c20 Mon Sep 17 00:00:00 2001 From: UPSquared Date: Wed, 6 Jun 2018 17:05:51 +0300 Subject: [PATCH] Fixed maxsonarez sensor returning distance in inches insted of cm --- src/maxsonarez/maxsonarez.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/maxsonarez/maxsonarez.cxx b/src/maxsonarez/maxsonarez.cxx index 79c0df1c..4a7d3419 100644 --- a/src/maxsonarez/maxsonarez.cxx +++ b/src/maxsonarez/maxsonarez.cxx @@ -65,6 +65,5 @@ int MAXSONAREZ::inches() int MAXSONAREZ::getDistance() { - // TODO: call static conversion first. - return inches(); + return (inches() * 2.54); }