Cessna 172 Pitches Up and Stalls With Elevator Neutral #1307
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 10 replies
-
You say you set Let's see some plots of the controls over time, airspeed, attitude etc. |
Beta Was this translation helpful? Give feedback.
-
That's a pretty aggressive pitch up. There are really only 2 moments that produce a pitch up, from the elevator and from the engine thrust if the propellor is mounted below the cg of the aircraft. I'd still suspect the elevator at this point. Plot the elevator position, which is what is used in calculating the pitch moment, let's see what that shows.
This particular model has 3 inputs that get summed to produce the elevator deflection. You've plotted jsbsim/aircraft/c172x/c172x.xml Lines 340 to 362 in c8af924 |
Beta Was this translation helpful? Give feedback.
-
Plot all the moments in the Just to double-check, have you modified the cg? Print out the cg values. jsbsim/src/models/FGMassBalance.cpp Lines 405 to 410 in c8af924 |
Beta Was this translation helpful? Give feedback.
-
Any reason you're not trimming the aircraft? Unless the aircraft is trimmed or there is an autopilot active for all axes you can't be surprised that starting an aircraft at some airspeed and altitude with the controls all centered is going to give you stable flight. |
Beta Was this translation helpful? Give feedback.
-
Take a look at the JSBSim python examples - https://github.com/JSBSim-Team/jsbsim/tree/master/examples/python for examples of how to trim the aircraft. Having said that, even if you have a successful trim solution, if you then engage an autopilot that is badly tuned the aircraft could spiral out of control. |
Beta Was this translation helpful? Give feedback.
-
You generally want to start the aircraft in a trimmed state, even if you're immediately going to enable an autopilot. |
Beta Was this translation helpful? Give feedback.
-
@tejaDhulipala Trimming an aircraft model is a fundamental subject in Flight Dynamics. To learn more, you can watch Ben Dickinson's YouTube video on trimming a 6-DoF model. |
Beta Was this translation helpful? Give feedback.
Yeah, I think everything looks right. I played around with the PID values and got a decent altitude hold. I also think starting the plane at 120 knots (even though that is its cruise speed) may have caused a lot of lift and a strong upward moment. Thank you so much for your help!