// sensorsclassextension.h
typedef enum MagnetometerAccuracy {
MAGNETOMETER_ACCURACY_UNKNOWN,
MAGNETOMETER_ACCURACY_UNRELIABLE,
MAGNETOMETER_ACCURACY_APPROXIMATE,
MAGNETOMETER_ACCURACY_HIGH
} ;
View the official Windows Driver Kit DDI referenceNo description available.
Specifies the accuracy of the magnetometer.
MAGNETOMETER_ACCURACY_UNKNOWNThe accuracy is currently not available, typically because the driver can't report it.
MAGNETOMETER_ACCURACY_UNRELIABLEThe reported values have a high degree of inaccuracy. Apps should always ask the user to calibrate the device whenever this value is returned.
MAGNETOMETER_ACCURACY_APPROXIMATEThe actual and reported values differ but may be accurate enough for some applications. Apps that only need a relative value, like a virtual reality app, can continue without additional calibration.
MAGNETOMETER_ACCURACY_HIGHThe actual and reported values are accurate. No additional calibration is needed.
Device drivers that support magnetometer accuracy should only report the MAGNETOMETER_ACCURACY_UNRELIABLE, MAGNETOMETER_ACCURACY_APPROXIMATE, and MAGNETOMETER_ACCURACY_HIGH values.
Apps that need calibration may periodically ask the user to calibrate the device. We suggest doing this once every 10 minutes.