Public Types | Public Member Functions | Private Member Functions | Private Attributes
OVR::Util::MagCalibration Class Reference

#include <Util_MagCalibration.h>

List of all members.

Public Types

enum  MagStatus { Mag_Uninitialized = 0, Mag_AutoCalibrating = 1, Mag_ManuallyCalibrating = 2, Mag_Calibrated = 3 }

Public Member Functions

void AbortCalibration ()
void BeginAutoCalibration (SensorFusion &sf)
void BeginManualCalibration (SensorFusion &sf)
void ClearCalibration (SensorFusion &sf)
Vector3f GetMagCenter () const
bool InsertIfAcceptable (const Quatf &q, const Vector3f &m)
bool IsAcceptableSample (const Quatf &q, const Vector3f &m)
bool IsAutoCalibrating () const
bool IsCalibrated () const
bool IsManuallyCalibrating () const
bool IsUnitialized () const
 MagCalibration ()
int NumberOfSamples () const
int RequiredSampleCount () const
bool SetCalibration (SensorFusion &sf)
void SetMinMagDistance (float dist)
void SetMinQuatDistance (float dist)
unsigned UpdateAutoCalibration (SensorFusion &sf)

Private Member Functions

Vector3f CalculateSphereCenter (const Vector3f &p1, const Vector3f &p2, const Vector3f &p3, const Vector3f &p4)
float PointToPlaneDistance (const Vector3f &p1, const Vector3f &p2, const Vector3f &p3, const Vector3f &p4)

Private Attributes

Vector3f MagCenter
Vector3f MagSamples [4]
float MinMagDistance
float MinMagDistanceSq
float MinQuatDistance
float MinQuatDistanceSq
Quatf QuatSamples [4]
unsigned SampleCount
unsigned Stat

Detailed Description

Definition at line 26 of file Util_MagCalibration.h.


Member Enumeration Documentation

Enumerator:
Mag_Uninitialized 
Mag_AutoCalibrating 
Mag_ManuallyCalibrating 
Mag_Calibrated 

Definition at line 29 of file Util_MagCalibration.h.


Constructor & Destructor Documentation

Definition at line 37 of file Util_MagCalibration.h.


Member Function Documentation

Definition at line 51 of file Util_MagCalibration.h.

Definition at line 20 of file Util_MagCalibration.cpp.

Definition at line 45 of file Util_MagCalibration.cpp.

Vector3f OVR::Util::MagCalibration::CalculateSphereCenter ( const Vector3f p1,
const Vector3f p2,
const Vector3f p3,
const Vector3f p4 
) [private]

Definition at line 117 of file Util_MagCalibration.cpp.

Definition at line 57 of file Util_MagCalibration.h.

Definition at line 95 of file Util_MagCalibration.h.

bool OVR::Util::MagCalibration::InsertIfAcceptable ( const Quatf q,
const Vector3f m 
)

Definition at line 84 of file Util_MagCalibration.cpp.

bool OVR::Util::MagCalibration::IsAcceptableSample ( const Quatf q,
const Vector3f m 
)

Definition at line 52 of file Util_MagCalibration.cpp.

Definition at line 67 of file Util_MagCalibration.h.

bool OVR::Util::MagCalibration::IsCalibrated ( ) const [inline]

Definition at line 48 of file Util_MagCalibration.h.

Definition at line 75 of file Util_MagCalibration.h.

Definition at line 47 of file Util_MagCalibration.h.

Definition at line 49 of file Util_MagCalibration.h.

float OVR::Util::MagCalibration::PointToPlaneDistance ( const Vector3f p1,
const Vector3f p2,
const Vector3f p3,
const Vector3f p4 
) [private]

Definition at line 170 of file Util_MagCalibration.cpp.

Definition at line 50 of file Util_MagCalibration.h.

Definition at line 98 of file Util_MagCalibration.cpp.

void OVR::Util::MagCalibration::SetMinMagDistance ( float  dist) [inline]

Definition at line 79 of file Util_MagCalibration.h.

void OVR::Util::MagCalibration::SetMinQuatDistance ( float  dist) [inline]

Definition at line 87 of file Util_MagCalibration.h.

Definition at line 28 of file Util_MagCalibration.cpp.


Member Data Documentation

Definition at line 106 of file Util_MagCalibration.h.

Definition at line 114 of file Util_MagCalibration.h.

Definition at line 108 of file Util_MagCalibration.h.

Definition at line 110 of file Util_MagCalibration.h.

Definition at line 109 of file Util_MagCalibration.h.

Definition at line 111 of file Util_MagCalibration.h.

Definition at line 115 of file Util_MagCalibration.h.

Definition at line 113 of file Util_MagCalibration.h.

unsigned OVR::Util::MagCalibration::Stat [private]

Definition at line 107 of file Util_MagCalibration.h.


The documentation for this class was generated from the following files:


oculus_sdk
Author(s):
autogenerated on Mon Oct 6 2014 03:01:21