com.flash3388.flashlib.io.devices.Gyro Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flashlib.core.io Show documentation
Show all versions of flashlib.core.io Show documentation
Robotics development framework (flashlib.core.io)
The newest version!
package com.flash3388.flashlib.io.devices;
import java.io.Closeable;
/**
* Interface for gyroscope sensors. Gyroscope sensors measure angular rotation and are used to measure
* the angular position in one or more axes of an object they are placed on.
*
* @since FlashLib 1.0.0
*/
public interface Gyro extends Closeable {
/**
* Resets the sensor values.
*/
void reset();
/**
* Gets the angle of the robot measured by the sensor.
*
* @return angle along the axis measured with degrees
*/
double getAngle();
/**
* Gets the rate of angular rotation measured by the sensor.
*
* @return rate of rotation along the axis in degrees per second
*/
double getRate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy