lejos.robotics.Gyroscope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lejos-ev3-api Show documentation
Show all versions of lejos-ev3-api Show documentation
leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.
The newest version!
package lejos.robotics;
/** Abstraction for Gyroscope defines minimal implementation
*
* @author Kirk P. Thompson 4/7/2011
*/
public interface Gyroscope {
/** Implementor must calculate and return the angular velocity in degrees per second.
* @return Angular velocity in degrees/second
*/
public float getAngularVelocity();
/** Implementor must calculate and set the offset/bias value for use in getAngularVelocity()
.
*/
public void recalibrateOffset();
public int getAngle();
public void reset();
}