updated distance detection
This commit is contained in:
		@@ -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"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user