There are severe oscillations in the estimated roll, pitch and their rates as seen in our logs, especially when the roll input is zero. Also the height sometimes drifts randomly, although it comes back after sometime. All this was measured in the Altitude Hold mode.
So far, we have tried to do roll and pitch PID tuning, and we also increased the MPC_Z_VEL_P parameter to improve the altitude hold capability. But it hasn't improved the situation much. What can we do to improve the situation?
Our guess is that we have too much vibrations (although we have an anti-vibration pad on which PixHawk is mounted). We also have propeller guards installed (which we built ourselves). We are using a TF-MINI sensor to measure altitude, and flying indoors upto 2 meters over a flat surface, with the altitude measurement set to be terrain following.
Log file: https://drive.google.com/open?id=1yj5xI9mIU7gfd5syNfkPHD-jOSvGM8tD
Or the logs.px4 link: https://logs.px4.io/plot_app?log=0d77e956-0e82-4d6d-b6f3-5f951da083ec