Class Overview
This class holds the data of the magnetometer.
Magnetometer Data are ambient magnetic field in micro-Tesla(uT) 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 ambient magnetic field along x, y and z axis - unit (micro-Tesla).
|
double
|
getX()
Gets ambient magnetic field along x axis - unit (micro-Tesla).
|
double
|
getY()
Gets ambient magnetic field along y axis - unit (micro-Tesla).
|
double
|
getZ()
Gets ambient magnetic field along z axis - unit (micro-Tesla).
|
[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.
|
|
Public Methods
public
double[]
getValues
()
Gets ambient magnetic field along x, y and z axis - unit (micro-Tesla).
Returns
- ambient magnetic field along x, y and z axis in micro-Tesla
public
double
getX
()
Gets ambient magnetic field along x axis - unit (micro-Tesla).
Returns
- ambient magnetic field along x axis in micro-Tesla
public
double
getY
()
Gets ambient magnetic field along y axis - unit (micro-Tesla).
Returns
- ambient magnetic field along y axis in micro-Tesla
public
double
getZ
()
Gets ambient magnetic field along z axis - unit (micro-Tesla).
Returns
- ambient magnetic field along z axis in micro-Tesla