Closed kevung closed 3 years ago
Is it due to the length of the simulation? Is it due to aircraft fuel capacity?
This is what I see when I run your script.
And zooming in on the altitude it doesn't look like the autopilot is very stable.
And looking at the airspeed and elevator.
And round the 328s mark things go pear shaped resulting in a stall.
So my initial guess is the PID gains aren't very well tuned, and maybe there is an integrator error that builds up eventually resulting in full elevator deflection leading to a stall.
I'm not familiar with this particular auto-pilot, so I'm not sure if it used to be more stable in the past and something has changed or whether it's always performed like this.
This is what I see when I run your script.
And zooming in on the altitude it doesn't look like the autopilot is very stable.
And looking at the airspeed and elevator.
And round the 328s mark things go pear shaped resulting in a stall.
So my initial guess is the PID gains aren't very well tuned, and maybe there is an integrator error that builds up eventually resulting in full elevator deflection leading to a stall.
I'm not familiar with this particular auto-pilot, so I'm not sure if it used to be more stable in the past and something has changed or whether it's always performed like this.
Thank you very much for your help! I'm quite new to JSBSim and to aircraft control and that was the reason why I chose to use the autopilot for a first introduction and the c172x plane seemed to be the most basic/simple one :) . I'm going to have a look into the reference manual if autopilot tuning is tackled.
Thanks again and all the best for the new year.
Hello Jsbsim community,
In order to learn to use the c172 with autopilot, I a simplified version of the script the c172_cruise_8K.xml, with only heading and altitude autopilot commands.
I expected the altitude to stay constant to 4000ft but it decreases with time. Am I doing something wrong?
Thank you very much for your help.
The script I use:
The graph of the altitude