summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_rift/ftnoir_tracker_rift.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.h')
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.h b/ftnoir_tracker_rift/ftnoir_tracker_rift.h
index 0f3bc099..7bacb91c 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.h
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.h
@@ -6,6 +6,7 @@
#include <math.h>
#include "facetracknoir/global-settings.h"
#include "OVR.h"
+#include "Util/Util_MagCalibration.h"
class Rift_Tracker : public ITracker
{
public:
@@ -26,6 +27,10 @@ private:
OVR::Ptr<OVR::HMDDevice> pHMD;
OVR::Ptr<OVR::SensorDevice> pSensor;
OVR::SensorFusion SFusion;
+ // Magnetometer calibration and yaw correction
+ OVR::Util::MagCalibration MagCal;
+ bool isCalibrated;
+
double newHeadPose[6]; // Structure with new headpose
bool bEnableRoll;
bool bEnablePitch;