@UsualPiooneer the PID values are a bitch though, so there's that.
To tune (Ziegler-Nichols)
start at 0,0,0
Start with the proportional value. Use 1+Trim as an adjuster. Highly recommended to use DebugExpressions.
Fly the plane, use autopilot to keep the plane flying straight, you will notice that the plane is oscillating, sometimes going out of control. Adjust until you get a good, stable oscillation. Take note of the trim value.
After that, use the trim value as the P gain.
Repeat step 2,3,4 for the D (3rd value) gain. However, you will be trying to stop the oscillations this time. Find the value that's just right. If it's too high, your surface will spazz out. Too low and it will make your plane lose stability. List it, and input.
I gain is usually left zero. So yeah you're as good as done.
@UsualPiooneer yes I did, it does use AoA as the current on the PID syntax
Code:
PID(Pitch*X, AngleOfAttack,P,I,D)/RA
Had to use /RA and *X because the rotators freaked out without it. Besides X can be any value below RA to reduce the chances of stalling unintentionally.
@UsualPiooneer shhh
@UsualPiooneer the PID values are a bitch though, so there's that.
To tune (Ziegler-Nichols)
1+Trim
as an adjuster. Highly recommended to use DebugExpressions.After that, use the trim value as the P gain.
Repeat step 2,3,4 for the D (3rd value) gain. However, you will be trying to stop the oscillations this time. Find the value that's just right. If it's too high, your surface will spazz out. Too low and it will make your plane lose stability. List it, and input.
I gain is usually left zero. So yeah you're as good as done.
@UsualPiooneer yes I did, it does use AoA as the
current
on the PID syntaxCode:
PID(Pitch*X, AngleOfAttack,P,I,D)/RA
Had to use /RA and *X because the rotators freaked out without it. Besides
X
can be any value below RA to reduce the chances of stalling unintentionally.this plane doesn't cobra