574
edits
(→Yasim: Added how to do wingflex for recent Yasim versions) |
|||
Line 182: | Line 182: | ||
== Yasim == | == Yasim == | ||
Yasim does not write the lift to the property tree. But you can create a helper | Older Yasim does not write the lift to the property tree. But you can create a helper | ||
function which computes the lift as | function which computes the lift as | ||
lift_force_lbs = aircraft_weight_lbs * load_factor - total_weight_on_wheels_lbs | lift_force_lbs = aircraft_weight_lbs * load_factor - total_weight_on_wheels_lbs | ||
and point the <lift-node-lbs> alias in wingflexer-params.xml to it. | and point the <lift-node-lbs> alias in wingflexer-params.xml to it. | ||
More recent Yasim does write the force, but it needs its sign inverted as wingflexer expects z is positive downwards, and converted to LBF. | |||
In Nasal that would be something like: | |||
<syntaxhighlight lang="nasal"> | |||
setprop("fdm/yasim/forces/f-z-lift-lbf", getprop("fdm/yasim/forces/f-z-lift")*-0.224809); | |||
</syntaxhighlight> | |||
As an expression: | |||
<syntaxhighlight lang="xml"> | |||
<expression> | |||
<product> | |||
<property>fdm/yasim/forces/f-z-lift</property> | |||
<value>-0.224809</value><!-- invert and convert from Newton to LBF --> | |||
</product> | |||
</expression> | |||
</syntaxhighlight> | |||
== Instability == | == Instability == |
edits