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

lejos.robotics.Accelerometer 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;

/**
 * Interface for Acceleration sensors
 * 
 * @author Lawrie Griffiths
 *
 */
public interface Accelerometer {	
	/**
	 * Measures the x-axis of the accelerometer, in meters/second^2.
	 * @return acceleration in m/s^2
	 */
	public int getXAccel();
	
	/**
	 * Measures the y-axis of the accelerometer, in meters/second^2.
	 * @return acceleration in m/s^2
	 */
	public int getYAccel();
	/**
	 * Measures the z-axis of the accelerometer, in meters/second^2.
	 * @return acceleration in m/s^2
	 */
	public int getZAccel();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy