Package lejos.robotics
Interface Accelerometer
-
- All Known Implementing Classes:
AccelerometerAdapter
public interface AccelerometerInterface for Acceleration sensors- Author:
- Lawrie Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetXAccel()Measures the x-axis of the accelerometer, in meters/second^2.intgetYAccel()Measures the y-axis of the accelerometer, in meters/second^2.intgetZAccel()Measures the z-axis of the accelerometer, in meters/second^2.
-
-
-
Method Detail
-
getXAccel
int getXAccel()
Measures the x-axis of the accelerometer, in meters/second^2.- Returns:
- acceleration in m/s^2
-
getYAccel
int getYAccel()
Measures the y-axis of the accelerometer, in meters/second^2.- Returns:
- acceleration in m/s^2
-
getZAccel
int getZAccel()
Measures the z-axis of the accelerometer, in meters/second^2.- Returns:
- acceleration in m/s^2
-
-