Inconsistent altitude - Log attached

Hi all,

my setup is as follows:

  • Skywalker X5 Pro V2 airframe
  • Arduplane v4.1.6
  • Matek F405 Wing
  • Servos, Motor, ESC from kit

As you can see in the log (link below), the altitude is very inconsistent in automatic flight modes, oscillating between 40-80m. The throttle goes up from 0-100% and back down regularly instead of remaining constant.
My assumption is that the PID tune is off, leading to these oscillations. Could that be the cause?

Link to the .bin log: WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free

Any help would be appreciated.

Regards,
Jakob

I just realized that the .bin log expired. Here is an updated link: Data package from July 8th. - FileTransfer.io

Set SERVO_AUTO_TRIM to 1. You need to fly a bit in FBWA or another stabilized mode to get it to trim out the servos for you.

Verify that the center of gravity is correct. Wings can be touchy. Given how much it’s running the throttle to keep altitude it may be trying to make up for something. If I had to guess I’d say say it might be tail heavy, because of the speed oscillations, but again that’s a guess.

PID tuning needs to be done. Don’t do this until your 100% on the C of G, but it really needs to be done.

Thank you for your suggestion @Allister! CG should be correct, but I will fine-tune it and try SERVO_AUTO_TUNE to see if it makes any difference.

The servo auto trim is on. the servo throw is about right. the C of G was confirmed. all the auto flying has altitide Oscillation. Throttle is keep changong from trim throttle to full. The attitude changes 20 meters above up and down.