EV3 Gyro Sensor

Non-Visible component
Category Requires Version
LEGO® MINDSTORMS® > EV3 API 19, Android 4.4 - 4.4.4 KitKat 1

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

Measures the orientation of the sensor.

Set Rate Mode

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: January 27, 2020