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

lejos.robotics.Gyroscope Maven / Gradle / Ivy

Go to download

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();

 }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy