The return value of distance block is displayed in centimeters.
Or, we can decide which unit is used for distance block.
Actual Behavior
distance block always returns a value between 0 and 100.
The ultrasonic sensor can measure distances between 1 cm and 255 cm, and also between 1 in and 100 in.
In Japan, we rarely measure distances in inches. So I (Japanese) suspected distance returns distances in centimeters, but it doesn't.
I also suspected distance block returns in percentile. But without any units, it's unclear that "100" indicates the upper limit of a sensor.
So my issues and requests are:
Make the unit of distance clear.
If the Scratch Team decided to measure distances in inches, make a option to measure it in centimeters.
Steps to Reproduce
Connect one ultrasonic sensor to a EV3.
Connect the EV3 to a computer using Bluetooth and Scratch Link.
Windows 10 Home 1803, Google Chrome 68.0.3440.106 (Official build) (64 bit), LEGO MINDSTORMS Education EV3 Core Set
I tested on https://beta.scratch.mit.edu/, on Aug 12, 2018.
Expected Behavior
distance
block is displayed in centimeters.distance
block.Actual Behavior
distance
block always returns a value between 0 and 100.The ultrasonic sensor can measure distances between 1 cm and 255 cm, and also between 1 in and 100 in. In Japan, we rarely measure distances in inches. So I (Japanese) suspected
distance
returns distances in centimeters, but it doesn't.I also suspected
distance
block returns in percentile. But without any units, it's unclear that "100" indicates the upper limit of a sensor.So my issues and requests are:
distance
clear.Steps to Reproduce
distance
block.Operating System and Browser
Windows 10 Home 1803, Google Chrome 68.0.3440.106 (Official build) (64 bit), LEGO MINDSTORMS Education EV3 Core Set I tested on https://beta.scratch.mit.edu/, on Aug 12, 2018.