Trim without resetting to initial conditions #649
Replies: 7 comments 9 replies
-
It looks like you're using the trim system to do what would normally be done by an autopilot. I've not seen the trim system used in this way, and I'm not surprised it's resetting your airplane to initial conditions. Maybe there's a way to force it to work, but I doubt it. Have you tried the autopilot approach? |
Beta Was this translation helpful? Give feedback.
-
The 737 series isn't really a FBW aircraft. The Airbus A320 was the first commercial airliner to include FBW functionality. Stability augmentation systems, stick pushers near the stall, MAX re-trimming the horizontal stabilizer etc. don't make it a FBW aircraft.
Now it sounds like you're sort-of adding FBW like functionality, e.g. the Airbus FBW aircraft do exactly this for bank angles < 33 degrees. Not really clear what you're trying to do. Are you trying to generate some automated flight tests, e.g. perform a climbing turn with increasing alpha until MCAS kicks in, but with your own modified MCAS algorithm? |
Beta Was this translation helpful? Give feedback.
-
If you give us more details on the exact types of flights you're trying to repeatably run against different MCAS implementations then we could potentially give you some useful pointers. As @dpculp mentioned:
So for example if your test is something like trimmed for landing, then executing a go-around at 100ft, e.g. with full thrust input and say 25% elevator input applied and held and then seeing how quickly that gets you to a stall angle with no MCAS, with MCAS implementation 1, 2, 3 etc. then you can script that quite easily.
So in my example as Dave mentioned, there is no change to the inputs based on the pilot's view of the aircraft's current state. The next level is some form of auto-pilot/PID control, e.g. maybe you want to simulate a pilot getting fixated on say holding a specific pitch attitude of say 15 degrees while not applying enough go-around power and then comparing what would happen with no MCAS, with MCAS implementation 1, 2, 3 etc. as alpha increases etc. |
Beta Was this translation helpful? Give feedback.
-
And under what conditions is the MCAS going to be triggered? These all seem to be pretty benign manoeuvres. PID controllers aren't implemented in the script, they're implemented in the aircraft xml file or a separate systems xml file. But they can expose properties like set-points, boolean properties to enable/disable themselves etc. which can be easily set in the script. |
Beta Was this translation helpful? Give feedback.
-
I see two implementations of PID in the manual: one described in section 2.7, and one described in section 3.1.9.1.17. Which is more appropriate for trying to simulate a pilot's efforts to keep the plane on a given course (ex: level flight)? The implementation in 3.1.9.1.17 seems far simpler. |
Beta Was this translation helpful? Give feedback.
-
Section 2.7 implements a PID controller using multiple separate elements like So yes I'd go with making use of the |
Beta Was this translation helpful? Give feedback.
-
But the Elevator Position (deg) graph shows the elevator angle changing during the 30s period of the graph. |
Beta Was this translation helpful? Give feedback.
-
Edit: Marked a response as an answer. To future readers: I'm planning to use the PID feature described in section 3.1.9.1.17 of the JSBSim PDF manual to hold attitudes, etc. It's easy enough to implement (just a few lines in the aircraft xml file).
Hello,
I am trying to write a script such that the 737 enters a bank of a given angle, and then sets do_simple_trim = 5 to hold the turn steadily. However, setting the trim mode once banked results in the aircraft reverting to initial conditions. Is there a way to set the trim without re-initializing the aircraft? Is do_simple_trim the right tool for this job, or am I going about the problem of a stable turn completely wrong? My end goal is to be able to turn the plane in, say, a holding pattern.
Github won't let me attach my XML, so...
Beta Was this translation helpful? Give feedback.
All reactions