A component that provides a high-level interface to an ultrasonic sensor on a LEGO MINDSTORMS EV3 robot.
The BluetoothClient component that should be used for communication. Must be set in the Designer
The sensor port that the sensor is connected to. Must be set in the Designer
The bottom of the range used for the BelowRange, WithinRange, and AboveRange events.
The top of the range used for the BelowRange, WithinRange, and AboveRange events.
Whether the BelowRange event should fire when the distance goes below the BottomOfRange.
Whether the WithinRange event should fire when the distance goes between the BottomOfRange and the TopOfRange.
Whether the AboveRange event should fire when the distance goes above the TopOfRange.
The distance unit, which can be either "cm" or "inch".
Returns the current distance in centimeters as a value between 0 and 254, or -1 if the distance can not be read.
Measure the distance in centimeters.
Measure the distance in inches.