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
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
double[]
|
getValues()
Gets sensor data values.
|
|
From class
java.lang.Object
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
final
Class<?>
|
getClass()
Returns the runtime class of an object.
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeout, int nanos)
Causes current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or some other
thread interrupts the current thread, or a certain amount of real time has
elapsed.
|
final
void
|
wait(long timeout)
Causes current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a specified
amount of time has elapsed.
|
final
void
|
wait()
Causes current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this 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