Maximum Magnetometer sample rate on iPhone7

Hello,


I am trying to sample the 3 axis magnetometer at 100Hz on an iPhone 7 using CoreMotion. I am currently programming the CMMotionManager.deviceMotionUpdateInterval to 0.01 seconds but the data read by the device is only updating at about 50Hz. If I change the value to 0.02 seconds or larger, this parameter works as expected. I believe that the magnetometer chip in the iPhone 7 should be capable of running with a sample rate of 100Hz. What approach should I use to run at 100Hz?


Thanks

You can attempt to read direction values from the iPhone's hardware as fast as you want, but don't expect them to be accurate - the speculation is that Apple elected to limit the sample rate (via their event-driven API), to a level that seems reasonable in practice.

Maximum Magnetometer sample rate on iPhone7
 
 
Q