We are writing a custom algorithm on our Companion computer, where I need to estimate the direction in which drone is moving.
As of now I was using actual measured speed obtained over MAVLINK to estimate what direction, drone is moving. However, the estimates are noisy at low speeds appx 2m/s.
Is there a better more accurate/stable way to predict heading /direction of motion/course over ground, like a MAVLINK message to obtain TVE and TVN? In my view, TVE and TVN will give me more accurate results for longer distances (like 5m) compared to VE and VN (which is generally noisy)