@spova You really should never have to lower Ang P below 4.5 on smaller heli’s. Ang P is very important to ensuring the aircraft maintains the requested attitude. I generally try to get this to at least 6. The other thing you should be very careful with is not putting in too much Rate I gain. This is very dangerous for the heli when it lands or is ground turning before takeoff. Any error in the requested rate and actual rate would cause large integrator buildup. This is caught by ILMI or IMAX depending on the integrator scheme you choose (Leaky Integrator or not through the param H_OPTIONS). So as a rule, I never increase Rate I more than 0.1.
Looking at your data, the pitch axis doesn’t show any rise in gain at a particular frequency. The gain plot with Rate P and D set to zero and the FLTT filter removed shows bare response to be pretty flat. There is a small rise of 2 db toward the point at which the gain then drops off. This is good. Se the plot below for that starting point with these settings
ATC_ANG_PIT_P,6
ATC_RAT_PIT_FF,0.14
ATC_RAT_PIT_P,0
ATC_RAT_PIT_I,0.05
ATC_RAT_PIT_D,0
ATC_RAT_PIT_D_FF,0
ATC_RAT_PIT_FLTT,20
ATC_RAT_PIT_FLTE,0
ATC_RAT_PIT_FLTD,0
I start tuning by reducing the Rate FF gain so that the rate gain is -4 to -5 db. Which when you view the angle with FF plot, it looks pretty good near 0 db. Then I start raising the Rate D gain while I watch the Rate controller plot. As the rate D gain is raised, the drop off will start moving to the right and then the gain will start to rise. As soon as I see an appreciable rise (1-2 db) which was around 0.0006, then i stop. next I raise the rate P gain while I look at the rate stability plot. You will see that the phase goes from -180 to 180 deg. This is the frequency that you look at in the gain plot to ensure it doesn’t go above -10db. I raised it to 0.03 and I am getting -12 db on the rate stability plot. You can see where my pointer is on the plot showing the gain at -12 db.
At this point I look at the attitude controller with Feedforward plot. This shows the response that you will observe when you fly.
I already have the Ang P at 6. You could go out and try this. You may notice a fast oscillation when you make sharp inputs. To remove that then you can lower FLTT. I Iowered it to 5 hz and I got the gain plot to flatten out before the drop off. here is what it looks like.
And the parameters are
ATC_ANG_PIT_P,6
ATC_RAT_PIT_FF,0.1
ATC_RAT_PIT_P,0.03
ATC_RAT_PIT_I,0.05
ATC_RAT_PIT_D,0.0006
ATC_RAT_PIT_D_FF,0
ATC_RAT_PIT_FLTT,5
ATC_RAT_PIT_FLTE,0
ATC_RAT_PIT_FLTD,0
Looking at the roll axis, you can see the gain rise around 5 hz for the tune with only FF gain and Rate I gain.
here is the attitude controller with feedforward plot after tuning it
and the parameters
ATC_ANG_RLL_P,6
ATC_RAT_RLL_FF,0.11
ATC_RAT_RLL_P,0.04
ATC_RAT_RLL_I,0.06
ATC_RAT_RLL_D,0.0003
ATC_RAT_RLL_D_FF,0
ATC_RAT_RLL_FLTT,20
ATC_RAT_RLL_FLTE,0
ATC_RAT_RLL_FLTD,0
ATC_RAT_RLL_NTF,0
ATC_RAT_RLL_NEF,0
Hopefully this was helpful













