Revamped magnetometer model to work with device motion, mainly gyros.