Interface Accelerometer

  • All Known Implementing Classes:
    AccelerometerAdapter

    public interface Accelerometer
    Interface for Acceleration sensors
    Author:
    Lawrie Griffiths
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getXAccel()
      Measures the x-axis of the accelerometer, in meters/second^2.
      int getYAccel()
      Measures the y-axis of the accelerometer, in meters/second^2.
      int getZAccel()
      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