'Correct drift from IMU with magnetic sensor

Is it possible to correct the drift from the IMU by setting an external magnetic sensor as the reference point (zero) of the magnetometer in the IMU. For example, tracking the position of the wrist, by having the magnetic field next to the magnetometer of the IMU, the zero or reference point will always stay at the position of the wrist.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source