# Quadcopter Suddenly Losing Altitude When Hovering for an Extended Time

**URL:** <https://discuss.px4.io/t/quadcopter-suddenly-losing-altitude-when-hovering-for-an-extended-time/12090>\
**Category:** PX4 Autopilot\
**Created:** [July 23, 2019, 9:29pm UTC](https://discuss.px4.io/t/quadcopter-suddenly-losing-altitude-when-hovering-for-an-extended-time/12090 "2019-07-23T21:29:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ar1040](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@ar1040](https://discuss.px4.io/u/ar1040)\
**Post date:** [July 23, 2019, 9:29pm UTC](https://discuss.px4.io/t/quadcopter-suddenly-losing-altitude-when-hovering-for-an-extended-time/12090/1 "2019-07-23T21:29:27Z")

</div>

I have not been having this problem until recently, or I just didn’t notice. After I take my quad off and bring it over 50ft (where lidar is no longer fused) and I allow the craft to hover for about 30 seconds and it began to lose altitude, until it seemed like the barometer data caught up with it, then the quad shot up very quickly, overshot the altitude setpoint and came down quickly again, finally regaining the altitude. What I have tried so far:  
Increasing EKF2\_BARO\_GATE = 15 (from 5) - seemed to help some  
Decreasing IMU\_GYRO\_CUTOFF = 40 (from 80) - Made it hold altitude for about 5 minutes before losing altitude.

I should mention that there are 20+MPH winds so the following logs are pretty noisy (about 20% over normal)  
I am using firmware version 1.8.2 and flying on a Pixhawk 2.1 Cube.

I have read that vibrations in the Z directions can cause this but I’m unsure of the boundaries. Any Insight would be appreciated.

log with altitude loss (20+mph winds):  
[https://logs.px4.io/plot\_app?log=17e1fff0-80a0-4886-b2ab-ad6331dec5ce](https://logs.px4.io/plot_app?log=17e1fff0-80a0-4886-b2ab-ad6331dec5ce)

normal log with 5-10mph winds (flying on lidar):  
[https://logs.px4.io/plot\_app?log=037923e9-d0f9-49c4-a21e-4cdc876fffbb](https://logs.px4.io/plot_app?log=037923e9-d0f9-49c4-a21e-4cdc876fffbb)

---

<div class="post-metadata">

**Author:** ![ar1040](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@ar1040](https://discuss.px4.io/u/ar1040)\
**Post date:** [July 24, 2019, 3:47pm UTC](https://discuss.px4.io/t/quadcopter-suddenly-losing-altitude-when-hovering-for-an-extended-time/12090/2 "2019-07-24T15:47:34Z")

</div>

Today I tested the situation again. I flew the drone to 100ft and let it hover. It seemed to be doing well until it began to lose altitude. Updon losing altitude, the drone shot up to 400ft indefinately, and was issued an RTL (via geofence) but came down way too fast, hit the ground and shot off into some grass. The vibration looked fine although, the vibration became worse and worse in the logs. Can someone give me a little insight on troubleshooting this issue?

[https://logs.px4.io/plot\_app?log=a729289d-6d44-4c0d-9235-ff4bd9b65079](https://logs.px4.io/plot_app?log=a729289d-6d44-4c0d-9235-ff4bd9b65079)
