Library globals

Class globals . aircraft . crossfeed_valve

View source

crossfeed_valve
=============================================================================
class that creates a fuel tank cross-feed valve. Designed for YASim aircraft;
JSBSim aircraft can simply use systems code within the FDM (see 747-400 for
an example).

WARNING: this class requires the tank properties to be ready, so call new()
after the FDM is initialized.

SYNOPSIS:
crossfeed_valve.new(<max_flow_rate>, <property>, <tank>, <tank>, ... );
crossfeed_valve.open(<update>);
crossfeed_valve.close(<update>);

<max_flow_rate>	... maximum transfer rate between the tanks in lbs/sec
<property>	... property path to use as switch - pass nil to use no such switch
<tank>		... number of a tank to connect - can have unlimited number of tanks connected
<update>	... update switch property when opening/closing valve via Nasal - 0 or 1; by default, 1


EXAMPLES:
aircraft.crossfeed_valve.new(0.5, "/controls/fuel/x-feed", 0, 1, 2);
-------
var xfeed = aircraft.crossfeed_valve.new(1, nil, 0, 1);
xfeed.open();

Functions

close

new

open