Replies: 5 comments
-
First off JSBSim supports 3 frames of reference for the forces and moments, and the forces and moments don't need to use the same frame of reference.
Before the following commit - eb99622 the moments were always required to be in the body frame of reference and the forces could be either wind or body. After this commit all 3 frames of references are available to both forces and moments. So when you say the wind axes are the most common in terms of FlightGear remember those models are typically using wind axes for the forces but body axes for the moments. If you look at the code in jsbsim/src/models/FGAerodynamics.cpp Lines 205 to 229 in ddd025a In the forces case there is also the jsbsim/src/models/FGAerodynamics.cpp Lines 261 to 273 in ddd025a Then additional moments around the current cg are calculated based on the difference between the MRC (Moment Reference Coordinate) and the current cg and the forces. jsbsim/src/models/FGAerodynamics.cpp Line 280 in ddd025a And so at this point the sum of the forces are in the body axes and are applied at the cg and the sum of the moments are also in the body axes. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the prompt answer, @seanmcleod The situation is still not 100% clear to me. If you don't mind I will need a few other clarifications: :-) .) I understand the forces and the moments can use two different frames of reference. But I suppose the 3 forces have to use a consistent frame of reference, and the 3 moments a consistent frame of reference (which can be different from the first one), is that correct? .) What happens if I do not specify a "frame='BODY|STABILITY|WIND'" after the axis definition? .) Same for the moments: If I use the ROLL|PITCH|YAW without specifying the frame, what frame will JSBSim assume for the moments? |
Beta Was this translation helpful? Give feedback.
-
Correct, you can't mix and match within the forces or moments axes. You have to choose one for all 3 force axes and one for all 3 moment axes.
The So there is code for handling the case where |
Beta Was this translation helpful? Give feedback.
-
Ok, maybe now it's clearer. Analyzing the code in your link, I understand that: .) X|Y|Z and ROLL|PITCH|YAW: .) LIFT|DRAG|SIDE is (and can only be) referenced to "wind axes"; .) AXIAL|NORMAL|SIDE is (and can only be) referenced to "body axial axes" (which is the "body axes" rotated 180 deg around Y.) So, if the above is correct:
(except possibly for the opposite signs of X and Z axes, if I got the orientation of the body frame correct). |
Beta Was this translation helpful? Give feedback.
-
Looks right. One thing I still need to do after that commit added support for all 3 frames of reference for both forces and moments is to update the documentation. You'll notice that the current documentation doesn't mention the new https://jsbsim-team.github.io/jsbsim-reference-manual/mypages/user-manual-forces-and-moments/ |
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.
-
Good day everyone,
I have a few questions about the calculation of forces and moments in relation to the frame of reference (FoR), and what happens in some unusual attitudes.
So, I reckon the "wind frame" is the most used FoR in jsbsim flight models (at least, in FlightGear, which is where I come from).
If I use the wind FoR (
<axis name=”DRAG”>... <axis name=”ROLL”>...
), is it correct to say that the "ROLL", "PITCH", "YAW" calculations in JSBSim (e.g. the definition of aerodynamic coefficients, etc.) refer to the wind FoR (green rotating arrows in image 1) and NOT to the body FoR (red rotating arrows in image 1)?If alpha = 90 degrees (e.g. during a Cobra maneuver, just imagine the C172 in the image is actually a Su27), is it correct to say that the "ROLL" axis in JSBSim in this case coincides with the YAW body axis, and the "YAW" axis in JSBSim coincides with the ROLL body axis?
In other words, if the definition in JSBSim produces, say a positive rolling moment while alpha = 90 degrees, will it actually cause the aircraft to YAW to the right?
Also, this should imply that IF alpha = +/-180 degrees, YAW and ROLL in BODY AXES are opposite to YAW and ROLL in WIND AXES.
e.g., if alpha = 180 degrees (tailslide), a positive (=nose right in normal attitude) YAW force in JSBSim, would actually induce a "tail right" (and hence a "nose left") rotation of the aircraft. Is this correct?
Beta Was this translation helpful? Give feedback.
All reactions