Currently I am implementing a head tracking solution that takes yaw and pitch from 2 difference sources; a gyro and a magnetic field sensor.
I have both the values passed into my program and now I am attempting to determine the best way to keep the precision of the gyro with the lossless nature of a fixed emitter mf sensor. Currently I am using newYaw = currentGyroYaw + 0.05*(difference between) to slowly drag the gyro to anchor to the mf, but it has some fairly constant movement.
It has been suggested that I try and use a Kalman filter but I've been looking up resources all day about it but can't seem to figure out how to apply it to my scenario; and what all the values would be in my case.
If anyone could help psuedo the steps and calculations I would need to take 2 yaw/pitch values and produce a new more accurate set it would be greatly appreciated. Thanks.