updated distance detection

This commit is contained in:
Peli de Halleux 2017-11-30 09:41:34 -08:00
parent 8089841892
commit b690c1634b
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{ {
"sensors.UltraSonicSensor.distance": "Gets the distance from the sonar in millimeters", "sensors.UltraSonicSensor.distance": "Gets the distance from the sonar in centimeters",
"sensors.UltraSonicSensor.onEvent": "Registers code to run when the given color is close", "sensors.UltraSonicSensor.onEvent": "Registers code to run when the given color is close",
"sensors.UltraSonicSensor.onEvent|param|handler": "the code to run when detected", "sensors.UltraSonicSensor.onEvent|param|handler": "the code to run when detected",
"sensors.UltraSonicSensor.waitUntil": "Waits for the event to occur" "sensors.UltraSonicSensor.waitUntil": "Waits for the event to occur"

View File

@ -67,7 +67,7 @@ namespace sensors {
} }
/** /**
* Gets the distance from the sonar in millimeters * Gets the distance from the sonar in centimeters
* @param sensor the ultrasonic sensor port * @param sensor the ultrasonic sensor port
*/ */
//% help=input/ultrasonic/distance //% help=input/ultrasonic/distance