Profile image

(Help)Flight control system

2,433 XM803ENJOYER46  5 days ago

I’m making a flight control system (FCS for now)
Anyone got any suggestions or tips on how to make it better? As of now the rotator code is
“clamp(Pitch - (((AngleOfAttack
.003)+(PitchRate.01)))clamp(TAS,0,1),-1,1)“
It behaves pretty well, but I feel it is not sufficient. Please leave a comment if you have any insight!

The main problem has been the plane want to snap back to 0° AOA when doing a PSM and making it handle oddly, so I went heavy on subtracting pitch rate from AOA to counteract.
Basically if it pitches back too fast, the rotator will counter that and go the opposite way to slow it down because it has a fast pitch rate and wants to slow it
They balance eachother out.