I am trying to test dual gps for yaw, however I am uncertain for what to look for in order to confirm that it is actually working.
I am following this setup:
When I have been testing the second gps achieves rtk-lock and the first achieves 3d-lock.
GLOBAL_POSITION_INT/hdg seems to drift somewhat, and the behavior of this field seems to be unchanged when I disconnect the second gps. This leads me to believe that this field in on itself is not a good place to look in order to determine whether the gps-heading works. (or that it is an indication that it doesn’t work).
As I understand it this field is the result of a fusion between the IMU data and gps-data using ekf3.
Is there any way I can see what the pixhawk calculates as heading from the gpses, without it being fused with other sensor-data? What I wish to achieve with this is testing the whether (and how well) the gps-heading works independently, or whether ekf3 is just using other sensors to estimate the heading.
I am using two zed-f9 gpses, and pixhawk 4. One gps is connected to the gps-port and the second is connected to telem2. The two gpses are placed 60 cm apart on a rod which i use for testing.
I am running copter version 4.0.5
When I rotate the pixhawk the heading seems to be updated correspondingly, but I believe this might be due to the IMU.
When I only rotate the rod with the gspes, the hdg seems to be unaffected. Does this imply that the setup necessarily doesn’t work, or might it be due to the fact that it is fused with other data?
My question is what I should look for to confirm definitely that the dual-gps heading works well.
I am new to ardupilot and any help would be greatly appreciated! Thank you