Faster automatic magnetometer calibration (Patch)
- 8 replies
- 3672 views
Hi,
attached to this post you find a patch for Util_MagCalibration.h && Util_MagCalibration.cpp which speeds up the auto calibration of the magnetometer alot without reducing the result quality.
This is done simply by collecting up to 16 samples and throwing away the worst ones until 4 samples match the criteria. The main problem of the original auto calibration is that is takes the initial view direction as the first sample and thus invalidates all samples easily reachable by moving the head comfortably.
The extension is txt as I am not allowed to upload patch or diff files.
Hope someone finds this useful!
regards,
Julian
attached to this post you find a patch for Util_MagCalibration.h && Util_MagCalibration.cpp which speeds up the auto calibration of the magnetometer alot without reducing the result quality.
This is done simply by collecting up to 16 samples and throwing away the worst ones until 4 samples match the criteria. The main problem of the original auto calibration is that is takes the initial view direction as the first sample and thus invalidates all samples easily reachable by moving the head comfortably.
The extension is txt as I am not allowed to upload patch or diff files.
Hope someone finds this useful!
regards,
Julian
