I can't even do that.
When folk have an agenda, personal history has taught me that PM's have a habit of not being private.
But I'm sure those folk that PM'd you about me could help.
TheEagle wrote in Mon Sep 05, 2022 12:39 pm:The problem was simply that I was first reading from feather-pos-norm (which was set before by JSBSim to the value of /controls/engines/engine/propeller-feather) and THEN writing to it - had I done it the other way around, it would have worked (and does now !). As always, a dumb mistake … sorry.
<fcs_function>
<function>
<ifthen>
<property>propulsion/engine/reverser</property>
<table>
<independentVar lookup="row">fcs/throttle-cmd-norm</independentVar>
<tableData>
0.28 -10.5
0.38 -0.5
</tableData>
</table>
<ifthen>
<property>fcs/feather-pos-norm</property>
<sum>
<property>propulsion/engine/blade-angle</property>
<product>
<property>simulation/channel-dt</property>
<value>10</value>
</product>
</sum>
<property>propulsion/engine/blade-angle</property>
</ifthen>
</ifthen>
</function>
<output>propulsion/engine/blade-angle</output>
<clipto>
<min>-10.5</min>
<max>86</max>
</clipto>
</fcs_function>
<switch>
<default value="0"/>
<test value="1">
fcs/advance-cmd-norm LT 0.4
</test>
<output>/controls/engines/engine/propeller-feather</output>
</switch>
<switch>
<default value="1"/>
<test logic="OR" value="0">
propulsion/engine[0]/reverser == 1
fcs/feather-pos-norm == 1
</test>
<output>propulsion/engine[0]/constant-speed-mode</output>
</switch>
TheEagle wrote in Mon Sep 05, 2022 4:25 pm:If you spare me with your mandatory XKCD !
TheEagle wrote in Mon Sep 05, 2022 5:19 pm:Yep, exactly ! Sometimes, the right sequence is critical …
Return to Flight dynamics model
Users browsing this forum: No registered users and 1 guest