Last Updated On 2021-07-16
Version 2MinSDK 7Tutorial Video
A component that provides a high-level interface to a gyro sensor on a LEGO MINDSTORMS EV3 robot.
You can set the below properties in the UI part of the builder.
- BluetoothClient - it's a BluetoothClient value which is set to blank by default.
- Mode - it's a lego ev3 gyro sensor mode value which is set to angle by default.
- SensorPort - it's a lego ev3 sensor port value which is set to 1 by default.
- SensorValueChangedEventEnabled - it's a boolean value which is set to false by default.
You can set the below blocks properties in the blocks section of the builder.
The BluetoothClient component that should be used for communication.
Specifies the mode of the sensor.
Whether the SensorValueChanged event should fire when the sensor value changed.
You can set the below method blocks in the blocks section of the builder.
Returns the current angle or rotation speed based on current mode, or -1 if the value cannot be read from sensor.
Measures the orientation of the sensor.
Measures the angular velocity of the sensor.
You can set the below event blocks in the blocks section of the builder.
Called then the sensor value changed.