# Ev3GyroSensor

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

## Properties

### BluetoothClient

The BluetoothClient component that should be used for communication. Must be set in the Designer

### SensorPort

The sensor port that the sensor is connected to. Must be set in the Designer

### Mode

The sensor mode can be a text constant of either "rate" or "angle", which correspond to SetAngleMode or SetRateMode respectively.

### SensorValueChangedEventEnabled

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

## Methods

### GetSensorValue ()

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

### SetAngleMode ()

Measures the orientation of the sensor.

### SetRateMode ()

Measures the angular velocity of the sensor.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.appybuilder.com/components/reference/legomindstorms/ev3gyrosensor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
