I am flying a drone using the mission planner in GCS, but the altitude displayed in the mission planner is not stable and the values are clearly wrong, such as -100m even when on the ground.
I have done calibration, etc. and there are no EKF errors. What is the cause of this problem and how can I fix it?
The EKF system takes the data from GPS, IMU, and barometer to generate the altitude and its estimates. If something is wrong with the altitude, it’s better to check that all those systems work correctly.
The barometer on Navio2 is sensitive to UV light. It may show sudden jumps in the altitude when exposed to the sunlight. Is your barometer covered with an open-cell foam? Here’s an example of such protection in the guide that you may check out.
Thank you @liudmila.slepova !
I was using the barometric sensor covered with opencell foam, but the altitude was not stable due to the fact that it was attached directly to the barometric sensor. I was able to solve the problem by just covering the barometric sensor part!
Glad to hear that you’ve found a working solution!