mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-05 20:14:07 +05:30
Fixed comment in sensors.h
This commit is contained in:
parent
b8931b271d
commit
dd58da63d1
@ -26,7 +26,7 @@ long Ping(int pin) {
|
|||||||
pinMode(pin, INPUT);
|
pinMode(pin, INPUT);
|
||||||
duration = pulseIn(pin, HIGH);
|
duration = pulseIn(pin, HIGH);
|
||||||
|
|
||||||
// convert the time into meters
|
// convert the time into centimeters
|
||||||
range = microsecondsToCm(duration);
|
range = microsecondsToCm(duration);
|
||||||
|
|
||||||
return(range);
|
return(range);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user