That could work, but why not just recode the stabs to work based on a direct value derived by the stick position and AOA state?
(Stick Position, percent * 0.1 ) + (standard AOA (8.1)) (gt;L: New AOA, number)
Every 10% increase in pull should increase the held AOA from the standard 8.1 by 1 degree. So pulling back on the stick 10% would allow you to maintain 9.1 AOA. Releasing the stick will cause the jet to go back to holding the default 8.1 AOA
(New AOA, number / Actual AOA, number) (gt; L: AOA Set, number)
Compares the actual AOA with the commanded AOA
(AOA Set, number) < or > 1
If the result of the division is greater than 1, the value is taken, fed into an algorithm that provides an elevator position output, and is then fed directly into the elevator, providing up elevator to correct.
If the result is less than 1, the value of the same equation, but reversed is used (Actual AOA, number/New AOA, number), multiplied by -1 to give it a negative value and fed back into the algorithm to provide an elevator down value.
Ideally, using a PID algorithm would be best in order to make smooth, timely corrections in order to reach and maintain the commanded AOA.
But first, I would need to make sure that I can separate the values given by the stick input and the elevator input.
(Stick Position, percent * 0.1 ) + (standard AOA (8.1)) (gt;L: New AOA, number)
Every 10% increase in pull should increase the held AOA from the standard 8.1 by 1 degree. So pulling back on the stick 10% would allow you to maintain 9.1 AOA. Releasing the stick will cause the jet to go back to holding the default 8.1 AOA
(New AOA, number / Actual AOA, number) (gt; L: AOA Set, number)
Compares the actual AOA with the commanded AOA
(AOA Set, number) < or > 1
If the result of the division is greater than 1, the value is taken, fed into an algorithm that provides an elevator position output, and is then fed directly into the elevator, providing up elevator to correct.
If the result is less than 1, the value of the same equation, but reversed is used (Actual AOA, number/New AOA, number), multiplied by -1 to give it a negative value and fed back into the algorithm to provide an elevator down value.
Ideally, using a PID algorithm would be best in order to make smooth, timely corrections in order to reach and maintain the commanded AOA.
But first, I would need to make sure that I can separate the values given by the stick input and the elevator input.


