Modified all iDistance sensors to return float.

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Serban Waltter
2018-06-27 14:28:00 +03:00
committed by Mihai Tudor Panu
parent ddcc4f467e
commit 864e1eb073
15 changed files with 17 additions and 17 deletions

View File

@ -55,7 +55,7 @@ GroveUltraSonic::~GroveUltraSonic () {
mraa_gpio_close (m_pinCtx);
}
int
float
GroveUltraSonic::getDistance () {
// output trigger signal

View File

@ -81,7 +81,7 @@ class GroveUltraSonic {
* Divide by 58 to convert distance to centimetres.
* Divide by 148 to convert distance to inches.
*/
int getDistance ();
float getDistance ();
/**
* Return name of the component