com.qualcomm.robotcore.hardware

## Interface Gyroscope

- All Known Subinterfaces:
    IntegratingGyroscope

      public interface Gyroscope

  The `Gyroscope` interface exposes core, fundamental functionality that is applicable to all gyroscopes: that of reporting angular rotation rate.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `AngularVelocity` | `getAngularVelocity(AngleUnit unit)` Returns the angular rotation rate across all the axes measured by the gyro.
    `java.util.Set<Axis>` | `getAngularVelocityAxes()` Returns the axes on which the gyroscope measures angular velocity.

- - ### Method Detail

    - #### getAngularVelocityAxes

          java.util.Set<Axis> getAngularVelocityAxes()

      Returns the axes on which the gyroscope measures angular velocity. Some gyroscopes measure angular velocity on all three axes (X, Y, & Z) while others measure on only a subset, typically the Z axis. This method allows you to determine what information is usefully returned through `getAngularVelocity(AngleUnit)`.
      Returns:
        the axes on which the gyroscope measures angular velocity.
      See Also:
        `getAngularVelocity(AngleUnit)`

    - #### getAngularVelocity

          AngularVelocity getAngularVelocity(AngleUnit unit)

      Returns the angular rotation rate across all the axes measured by the gyro. Axes on which angular velocity is not measured are reported as zero.
      Parameters:
        `unit` - the unit in which the rotation rates are to be returned (the time dimension is always inverse-seconds).
      Returns:
        the angular rotation rate across all the supported axes
      See Also:
        `getAngularVelocityAxes()`