Skip to content

[Bug] How do I print gyro angle using the block code. #2645

@DMB-rgb

Description

@DMB-rgb

Describe the bug
I wanted to be able to view the measured gyro angle.
On EV3 sensors could not find circle ended box with a circle ended box inside "sensor" with either angle or speed.

To reproduce
Code as in the picture below.

Expected behavior
In the input menu, I was was expecting an interface for the gyro speed and angle. I was expecting a circle ended box with a circle ended box inside "sensor" that would have recognised "gyro" from my assignment, line 9 in the python. I want line 17 to read print("Gyro", gyro.speed)

I know it is incorrect but I got close to the result I wanted by using what I was expecting with gyro.tilt()[0]

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssues that have not been triaged yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions