CopenhagenGameCollective/UniMove — pull request #4 by aarongaudette (2014-04-03 01:09:59+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.