|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.locationProvider.DeviceSensor
public class DeviceSensor
Process sensors information and decides whether the device is moving or not.
Field Summary | |
---|---|
static float[] |
devA
|
static float[] |
devM
|
static float[] |
devO
|
static boolean |
flagMoving
|
static float[] |
geomagnetic
|
static float[] |
gravity
|
static java.lang.Object |
lockMoving
|
static java.lang.Object |
lockSensing
|
static float[] |
mI
|
static float[] |
mR
|
static float[] |
refA
|
static float[] |
refO
|
static float |
wsAggregate
|
static int |
wsPosition
|
static float[] |
wsSequence
|
Constructor Summary | |
---|---|
DeviceSensor()
|
Method Summary | |
---|---|
static void |
disableMoving()
|
static void |
enableMoving()
|
static float |
getHeading()
Return the angle between the device direction and the north direction in the Earth's coordination system |
static float[] |
getRefAcceleration()
Synchronized get function to get the reference acceleration in the Earth's coordination system |
static boolean |
isMoving()
|
static void |
setDevA(float[] raw)
Set the accelerometer sample values and calibrate the data if required * @param raw The raw output from accelerometer |
static void |
setDevM(float[] raw)
Set the magnetic sample values and calibrate the data if required |
static void |
setDevO(float[] raw)
|
static boolean |
toEarthCS()
Convert the sensor data from the device's coordination system to the world's coordination system including motion and orientation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static float[] devA
public static float[] devM
public static float[] devO
public static boolean flagMoving
public static float[] geomagnetic
public static float[] gravity
public static java.lang.Object lockMoving
public static java.lang.Object lockSensing
public static float[] mI
public static float[] mR
public static float[] refA
public static float[] refO
public static float wsAggregate
public static int wsPosition
public static float[] wsSequence
Constructor Detail |
---|
public DeviceSensor()
Method Detail |
---|
public static void disableMoving()
public static void enableMoving()
public static float getHeading()
public static float[] getRefAcceleration()
public static boolean isMoving()
public static void setDevA(float[] raw)
public static void setDevM(float[] raw)
raw
- The raw magnetic output from sensorpublic static void setDevO(float[] raw)
public static boolean toEarthCS()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |