All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flash3388.flashlib.io.devices.Gyro Maven / Gradle / Ivy

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