I have been testing position control using pmw3901 optical flow sensor.
Flight log about local position shows very good position hold however, it keeps moving towards left.
Here is the log.
And here is the integral of raw optical flow sensor data.
Above plot is time integration of flow sensor int x and y.
Calculated speed is approximately 0.01 m/s while there is no significant movement in forward/backward direction.
It looks like somewhere in position controller yields small errors is body x frame.
How can I solve this problem? or any suggestions on this issue?
//Added video below