scratchfoundation / scratch-vm

Virtual Machine used to represent, run, and maintain the state of programs for Scratch 3.0
http://scratchfoundation.github.io/scratch-vm/
GNU Affero General Public License v3.0
1.22k stars 1.53k forks source link

Incorrect angle of micro:bit "tilt angle" #1918

Open asondemita opened 5 years ago

asondemita commented 5 years ago

Expected Behavior

I thought that the "title angle" block of micro:bit would also return 90 at 90 °.

Actual Behavior

When angle is 90 °, "title angle" block returns 100.

For reference, the "motor position" block of LEGO EV3 returns 90 at 90 °.

Steps to Reproduce

tile_angle_ng

Operating System and Browser

Widows10, Chrome 71.0.3578.98, Scrach Link 1.1.28.0

thisandagain commented 5 years ago

/cc @ericrosenbaum @khanning