Package se.hendeby.sensordata
Class EstimateOrientation
java.lang.Object
se.hendeby.sensordata.EstimateOrientation
An orientation estimation implementation
The implemented orientation estimation algorithm is a java version of the
MARG orientation filter by Sebastian Madgwick, for details see:
http://www.x-io.co.uk/open-source-imu-and-ahrs-algorithms/
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EstimateOrientation
Constructor- Parameters:
server- A SensorDataReader that will provide the measurements.
-
-
Method Details
-
start
Start up the server, the phone view, and start filtering.- Throws:
IOException- Throws an IOException on I/O errors.
-
status
public boolean status()Status of the orientation estimation.- Returns:
- True if the server is up and running.
-
getQuat
public double[] getQuat()Extract the current orientation.- Returns:
- The current orientation as a normalized quaternion.
-
stop
Stop the orientation estimation.- Throws:
IOException- An IOException are thrown on I/O errors.
-
finalize
Destructor. Kill the orientation estimation on destruction.
-