Using an external vision sensor (HTC Vive) to provide position estimate to pixhawk EKF2.
The EKF fuses the vision information for a few tens of seconds, but the estimate starts drifting and resets to the x=y=~0 origin.
The logs of a test are here: https://logs.px4.io/plot_app?log=f16ec023-ecad-43cc-975e-2e7bfaf7deca .
The specific test sequence was
Pitch up once
Roll right thrice
Yaw right 4 times.
It could be from the high lag between the vision to pixhawk delay (~300ms). Changing this param to zero removed this issue.
So we changed few things on our system to reducing the lag to under 100ms resolved this issue.
Some closure on this:
This was since the ground station PC and the onboard raspberry pi were not time synced. When they were synced, the problem of drift vanished.