Skip to content

EV3 Gyro Sensor

Non-Visible component
Category Requires Version
LEGO® MINDSTORMS® > EV3 API 21, Android 5.0 Lollipop 2

Overview

A component that provides a high-level interface to a gyro sensor on a LEGO MINDSTORMS EV3 robot.

Events

Sensor Value Changed

Called then the sensor value changed.

Params
sensor Value Number

Methods

Get Sensor Value

Returns: Number

Returns the current angle or rotation speed based on current mode, or -1 if the value cannot be read from sensor.

Set Angle Mode

⚠ Deprecated

Measures the orientation of the sensor.

Set Rate Mode

⚠ Deprecated

Measures the angular velocity of the sensor.

Properties

Bluetooth Client

Component ➖ Read Write - Designer Blocks

The BluetoothClient component that should be used for communication.

Mode

Text Default: angle ➖ Read Write - Designer Blocks

Specifies the mode of the sensor.

Sensor Port

Text Default: 1 ➖ Write - Designer

The sensor port that the sensor is connected to.

Sensor Value Changed Event Enabled

Boolean Default: False ➖ Read Write - Designer Blocks

Whether the SensorValueChanged event should fire when the sensor value changed.


Last update: November 9, 2022