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 Gyro Sensor #1010

Open ManagedStudios opened 1 year ago

ManagedStudios commented 1 year ago

The newer Gyro Sensors with a date code N4 or higher have a 2 axis gyroscope inside the sensor. It is really frustrating that you can use just one of them. For detecting inclined planes for example it would be great to be able to retrieve the tilt angle from the gyro sensor.

EV3DEV has a built in solution and EV3-G software has a third party block integration (https://github.com/dlech/EV3-G-Blocks/releases).

Would be so great if we get this feature also in makecode

THEb0nny commented 1 year ago

Yes, in the beta version the gyroscope does not work at all.

THEb0nny commented 10 months ago

I was wrong when I wrote this. The gyroscope does not work in port 1 in the beta version, because... there is a bug with 1 port. Sensors with UART do not work in it.

THEb0nny commented 10 months ago

I think after some time I will get around to adding this feature

THEb0nny commented 9 months ago

@ManagedStudios https://github.com/microsoft/pxt-ev3/pull/1050