aarongaudette/UniMove — pull request #1 by pjarnfelt (2014-04-03 06:34:17+00:00)
Title: Update UniMoveController to support orientation

Imported 4 additional functions related to orientation. Note, has_calibration and enable_orientation must be true for orientation to work. Additionally, reset_orientation must be called at least once.

Added orientation code to ProcessData, w axis moved to the front of the quaternion (this is Unity's convention).

Added four public functions: HasCalibration, HasOrientation, EnableOrientation, and ResetOrientation. Also added orientation accessor.

Added InitOrientation function, checks for calibration and enables orientation. ResetOrientation must be called separately. The Move's Magnetometer needs to be calibrated for accurate results.