CPX MakeCode acceleration (mg) vs. rotation (degrees)

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
johngale
 
Posts: 13
Joined: Mon Jan 26, 2015 6:37 pm

CPX MakeCode acceleration (mg) vs. rotation (degrees)

Post by johngale »

acceleration (mg) block is working as expected, and I can use it for my project.

However, I think there is a bug in the rotation (degrees) block. I know it's just mapping it from the g values, but "pitch" reads rotation around the Y axis (should be the X axis), and "roll" reads rotation around the X axis and is upside down, so if the CPX is lying nearly flat, it jitters between + and - 180. The 0 is where it is laying upside down. Not a problem for my project, but could be confusing if not fixed.

Locked
Please be positive and constructive with your questions and comments.

Return to “MakeCode”