Replies: 3 comments 4 replies
-
You haven't given enough context. At what point are you executing: Clp = fdm['aero/coefficient/Clp'] While the aircraft is flying or while it's standing still on the ground? Now I presume you've seen this function in jsbsim/aircraft/c172p/c172p.xml Lines 733 to 743 in ebb770e Now the first thing you need to realise is that the name of the function can be anything that the FDM author feels like using, but typically people include coefficient names in the function but there is no requirement, you could name this Now it turns out that functions using this sort of naming convention can be misleading, the Now I'm guessing you're trying to retrieve the coefficient in particular, i.e. If so, remember that coefficients in general aren't static figures. For example take a look at this example: Lines 770 to 785 in ebb770e The coefficient in the above case is dependent on Mach. What exactly are you trying to do? |
Beta Was this translation helpful? Give feedback.
-
Do you control the FDM or do you want to somehow retrieve coefficients for any FDM that you're given without editing it? If you control the FDM what I've done in the past for my VSS (Variable Stability System) simulator is the following: <aerodynamics>
<property value="-0.6"> aero/stability_coefficients/Cm-alpha </property>
<property value="-27.0"> aero/stability_coefficients/Cm-q </property>
<property value="-16.0"> aero/stability_coefficients/Cm-alpha-dot </property>
<property value="1.0"> aero/stability_coefficients/Cm-d-elevator </property>
<property value="-0.2"> aero/stability_coefficients/Cl-beta </property>
<property value="-0.4"> aero/stability_coefficients/Cl-p </property>
<property value="0.09"> aero/stability_coefficients/Cl-r </property>
<property value="1.0"> aero/stability_coefficients/Cl-d-aileron </property>
<property value="0.01"> aero/stability_coefficients/Cl-d-rudder </property>
<property value="0.1"> aero/stability_coefficients/Cn-beta </property>
<property value="0.00"> aero/stability_coefficients/Cn-p-xx </property>
<property value="-0.35"> aero/stability_coefficients/Cn-r </property>
<property value="0.00"> aero/stability_coefficients/Cn-d-aileron-xx </property>
<property value="-0.2"> aero/stability_coefficients/Cn-d-rudder </property>
<axis name="PITCH" unit="LBS*FT">
<function name="aero/coefficient/Cmalpha">
<description>Pitch_moment_due_to_alpha</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/alpha-rad</property>
<property>aero/stability_coefficients/Cm-alpha</property>
</product>
</function> I'm then able to at run-time via the instructor station software read and update the coefficients to change the flying characteristics of the aircraft for a particular test pilot lesson. |
Beta Was this translation helpful? Give feedback.
-
Looks like an interesting book. I presume you've come across this repo for the book? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm submitting a ...
Hello, I'm using the c172p aircraft and I try to get the aero coefficients. But whenever I try to get them like this :
I get 0.0 values. I have no other choice but to go to the .xml specification file and copy the values from it. Is there a way to get the coefficients with some python API call ?
Please tell us about your environment:
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions