Alt Hold issues in Copter 4.0

Hello,
I have an altitude problem on a drone with version 4.0.7; pixhawk 4 holybro , with wind influence the drone climbs in altitude , in the logs the baro altitude is not too bad but the altitude calculated by EKF goes down and goes wrong, I show you the log ,stationary flight
,


log : 36 01-01-1980 01-00-00.bin (866 KB)
param : 36 01-01-1980 01-00-00.bin.log.param (18.2 KB)

I suspected IMU cause, I redid the accelerometer calibration and i did a second flight, no wind, at the beginning it was stable in altitude but when I accelerate in x,y position in loiter mode, the drone has to climbs in altitude

log : https://drive.google.com/file/d/1SjgCWLV3whafnnbRSDhv60d4jVbGiXCT/view?usp=sharing
what make EKF altitude goes wrong ?

The Vibe levels don’t look terrible but there is still clipping on 2 axis. Quite a lot of events on one (Z I suppose as usual).

I just added the log of second flight ,the vibration here is not bad , but when the drone move quickly , he goes up , i always suspect the effect of the wind. but is wierd I didn’t have this problem before with other drones , i use for the first time X500 holybro frame ,esc and motor , i have a second x500 frame with same configuration he fly better .

Try setting these:
PSC_ACCZ_I,0.5026
PSC_ACCZ_P,0.2513

My Hex copter altitude problem
Bat:22000 maH,6S
Propeller:28"
Motor:190KV
Flight controller:CUAV V5+
Firmware: Arducopter 4.0.3

Problem:In loiter mode,when pitch or roll break,altitude oscillator


log bin file:
https://drive.google.com/file/d/1XfKmcnvvsG0P4xf6HJx5kDNSt3vLJfyk/view?usp=sharing

@ucanfly2018 update to ArduCopter 4.0.7, use the dynamic notch filter and make sure the prop wash does not go trought the barometer.

Hello all, I am having some quite large alt variations on my X8 copter. The cause is well known ie aerodynamic pressure bubbles as it speeds up/slows down. Would increasing EK3_ALT_M_NSE be a good way to mitigate this somewhat?