Short story: I think I could probably deal with this by fiddling with some combination of TECS_TIME_CONST, TECS_PTCH_DAMP, TECS_THR_DAMP and TECS_SPDWEIGHT, but I see no good weather in the forecast for a long time ahead so I will bother the people in Ardupilot forums while I’m waiting. Maybe their experience can get me to the answer quicker.
Long story:
4m wingspan glider style plane, trying to maximize endurance, testing with loiter mode, seeing slow pitch and throttle oscillations. Due to the sluggish movement of the long wing I had to set AUTOTUNE_LEVEL to 3 and reduce the xxx2SRV_RMAX values to 40 deg/s, after that the basic tunes seems fine. The altitude hold is actually very decent already, with less than 2m vertical variance over 5 hours in calm conditions. But I feel like the constantly pulsing throttle and pitch has to be leaving some efficiency on the table, right?
No airspeed sensor!
The frequency of oscillation is about 5-6 seconds which makes me think TECS_TIME_CONST might be the first thing to twiddle with.
Here is a couple minutes of data:
Zoomed in to about 15 seconds:
fwiw the same oscillations are present in FBWA too:
My first plan is to increase TECS_TIME_CONST a little from the current default of 5. I suspect a little more TECS_PTCH_DAMP and TECS_THR_DAMP might help too. TECS_SPDWEIGHT is probably involved too but to be honest I don’t know which way I would adjust that. The spring weather is not letting me check anything for a while so any suggestions are welcome. I could put the log up somewhere but tbh it’s just hours and hours of the same thing in the above screenshots…


