microsoft / pxt-ev3

Microsoft MakeCode editor for the LEGO MINDSTORMS EV3 Brick
https://makecode.mindstorms.com/
Other
54 stars 39 forks source link

Tilt angle mode for gyro sensor #1050

Open THEb0nny opened 9 months ago

THEb0nny commented 9 months ago

Using EulerIntegrator and the TiltRate mode, we obtain the value by analogy. It is impossible to obtain the Rotation angle (angle()) and tiltAngle values at the same time due to the fact that the sensor switches mode.