XML delay

05 Nov 2012 21:32 #4624 by Bomber
XML delay was created by Bomber
I've got this so far, which gives me a negative 'G' cut-out

<system name="tilly_shilling">

<channel name="fuel_starvation">

<fcs_function name="fuel_starvation">
<function>
<table>
<independentVar lookup="row">accelerations/Nz</independentVar>
<tableData>
-0.1 0
0.1 1
</tableData>
</table>
</function>
<output>propulsion/tank[1]/priority</output>
</fcs_function>

</channel>

</system>


Does anyone know how to use the 'delay' in XML ?

Simon

Please Log in or Create an account to join the conversation.

05 Nov 2012 21:42 #4626 by StuartC
Replied by StuartC on topic XML delay
not me, sorry

Please Log in or Create an account to join the conversation.

06 Nov 2012 00:21 #4631 by jano
Replied by jano on topic XML delay
to do this, i would use some jsbsim function and some nasal:

- a jsbsim switch , wich set a "negative-g" prop to 1 if

"accelerations/Nz gt 0"

- a nasal part listening to the "negative-g" prop (with a setlistener):
- if negative-g is 1, we use a settimer to change a "fuel-starvation" to "1" 15s later.
- if negative-g is 0 we use a setimer to immediately set to 0 "fuel-starvation", this way it close the previous setimer if the inverted flight is not long enough.

to close the loop, you can use nasal or a jsbsim function to listen to the "fuel-starvation" prop, and cut the feed when it's set to 1.

that was a just before bed answer :)

jano

Please Log in or Create an account to join the conversation.

06 Nov 2012 09:49 #4648 by Bomber
Replied by Bomber on topic XML delay
Hi Jano,

The T4T team decided sometime ago to use Nasal as little as possible and put all our efforts into leveraging the best out of the JSBsim XML code..

This isn't an anti-nasal decision, it's just that we wanted to concentrate all our learning into one method and not split between 2 methods, Nasal and XML.

There's always more than one way of skinning a cat and your advice over the inverted flight is valid for both methods...

And it's this thought process that's needed before coding so thanks for the reply

Simon

Please Log in or Create an account to join the conversation.

Time to create page: 0.291 seconds
Powered by Kunena Forum

Latest Forum Posts

PM Notifications

You are not logged in.

PM Mailbox

You are not logged in.