public final class

AccelerometerData

extends SensorData
java.lang.Object
   ↳ com.neomades.io.sensor.SensorData
     ↳ com.neomades.io.sensor.categories.AccelerometerData

Class Overview

This class holds the data of the accelerometer.

Accelerometer data are raw acceleration in m^2/s along the device's local X, Y and Z axis.

The precision can vary a lot, depending on performances of the device embedded sensor.

Summary

Constants
double EARTH_GRAVITY Earth's attraction (m/s^2)
Public Methods
double[] getValues()
Gets accelerations values along x, y and z axis.
double getX()
Gets acceleration along x axis.
double getY()
Gets acceleration along y axis.
double getZ()
Gets acceleration along z axis.
[Expand]
Inherited Methods
From class com.neomades.io.sensor.SensorData
From class java.lang.Object

Constants

public static final double EARTH_GRAVITY

Earth's attraction (m/s^2)

Constant Value: 9.81

Public Methods

public double[] getValues ()

Gets accelerations values along x, y and z axis.

Returns
  • an array of 3 dimensions containing raw accelerations along x, y and z axis

public double getX ()

Gets acceleration along x axis.

Returns
  • raw acceleration along the x axis

public double getY ()

Gets acceleration along y axis.

Returns
  • raw acceleration along the y axis

public double getZ ()

Gets acceleration along z axis.

Returns
  • raw acceleration along the z axis