How to derive the formula in class FGInitialCondition #723
Replies: 2 comments 4 replies
-
So in the simple case assuming 0 bank angle ( However the Given the constraints, in particular the orientation constraints this means that the function isn't always able to calculate a solution. For example say the bank angle is 90 degrees and the heading angle is aligned with the velocity vector's horizontal angle and a non-zero alpha is requested then it's impossible to achieve the requested alpha angle. In this case the only way to achieve the requested alpha angle would be to relax the heading angle constraint. Here are some images drawn by @agodemar which shows all the relevant angles for the general case. Maybe they'll make it a bit clearer in terms of how the function goes about it's calculation. https://jsbsim-team.github.io/jsbsim-reference-manual/mypages/user-manual-frames-of-reference/ |
Beta Was this translation helpful? Give feedback.
-
@emptyxiao are you looking for a detailed explanation, i.e. virtually line by line explaining the maths/geometry behind every line in the function, or do you follow say 80% of the code and you just need a detailed explanation for some 20% of the code, i.e. particular steps you don't follow? I don't have a detailed line by line explanation handy, I would need to spend a fair bit of time going through the code. Going through the commit history I've figured out when this particular function was added and by whom. "Complete rewrite of the FGInitialCondition class" - da0b947, in 2010, method originally called The good news is the code author, @bcoconni is still around and very active in terms of JSBSim. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How to derive the formula in function "calcThetaBeta"
jsbsim/src/initialization/FGInitialCondition.cpp
Lines 321 to 390 in 59c0bd9
Beta Was this translation helpful? Give feedback.
All reactions