I am trying to find the plane’s heading. When I look at the AHRS module (AP_AHRS) I get inaccurate and extremely drifting values. Also when I connect the Pixhawk to the Mission Planner and display “yaw” I get the same results.
I tried looking at MAVLink’s two outputs:
For some reason I get completely different values (plots attached, ignore the x-scale, it is percentage of the trajectory).
It looks like the attitude source is the “real” one, it’s also fits the real trajectory.
Where does this variable come from? How do I use it? what should I include?
I have NO experience with dealing with MAVLink, sorry about that…
If someone can write just short “program” that takes that variable from wherever it is and put it to a local variable it will be VERY helpful!
Thank you for the help!