This repository is demonstration app of getting magnetometer data for iOS.
This app is a sample to get magnetic sensor data on iOS. iOS provides three types of magnetic sensor data.
- Core Motion framework
CMMagnetometerData class in CMMotionManagers provides raw magnetic field data. - CMDeviceMotion
CMCalibratedMagneticField structure in CMDeviceMotion provides calibrated magnetic field data.(Corrected for device bias) - Core Location framework
CLHeading class provides corrected for device bias and filtered to eliminate local external magnetic field data.
Magnetometer Demo for iOS is distributed under the standard MIT license.