Supported property for function in latest jsbsim plugin for Unreal #1046
-
I noticed that some <function name="aero/coefficient/Cz_g">
<description>
Change in Z due to ground effect
This is bad hack, GE should really be a addition, not a factor
</description>
<sum>
<v>1</v>
<product>
<!-- positive contribution to lift -->
<property>aero/coefficient/CL_g</property>
<cos>
<!-- Less lift due to ground effect when flying inverted-->
<product>
<p>/orientation/roll-deg</p>
<v>0.017453</v>
</product>
</cos>
<cos>
<property>aero/alpha-rad</property>
</cos>
</product>
<product>
<!-- negative contribution to induced drag -->
<v>-1</v>
<property>aero/coefficient/CL_g</property>
<cos>
<!-- Less lift due to ground effect when flying inverted-->
<product>
<p>/orientation/roll-deg</p>
<v>0.017453</v>
</product>
</cos>
<sin>
<property>aero/alpha-rad</property>
</sin>
</product>
</sum>
</function>
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Good question. I don't think there's any easy way to know which property will work or not, besides just testing it. FlightGear has a scripting system called Nasal. That property It's possible to create the property name in the aircraft file so that it does exist and won't crash, (but I'm unfamiliar with how to correctly do that and can't help you). The other option is you can remove those properties/systems. |
Beta Was this translation helpful? Give feedback.
-
Not sure if it might be helpful in this particular circumstance, but executing this statement (for example): ./JSBSim --catalog=c172x will print a list of all published properties for the model. |
Beta Was this translation helpful? Give feedback.
-
R - Readable So writeable properties can be written to/updated by JSBSim script code, Python code, Nasal script, C++ code etc. |
Beta Was this translation helpful? Give feedback.
-
Well, a comprehensive default list is a bit tricky. So yes, the properties you see in the JSBSim C++ source code being added to the property tree are available by default, mostly. jsbsim/src/models/FGPropagate.cpp Lines 880 to 882 in 3d95aeb I say mostly because you will also find properties in the C++ code like the following, that are only available if a piston engine for example is being used. jsbsim/src/models/propulsion/FGPiston.cpp Lines 375 to 380 in 3d95aeb |
Beta Was this translation helpful? Give feedback.
Well, a comprehensive default list is a bit tricky. So yes, the properties you see in the JSBSim C++ source code being added to the property tree are available by default, mostly.
jsbsim/src/models/FGPropagate.cpp
Lines 880 to 882 in 3d95aeb
I say mostly because you will also find properties in the C++ code like the following, that are only availab…