Lines Matching refs:tanks

3 # Custom 1049H routines for fuel tanks and routing support
27 # 2 and 3 have secondaries (2A, 3A), but if wing-tip tanks are installed they are secondaries for
28 # tanks 1 and 4. The center tank 5 has no secondary.
30 # Cross-feed valves allow an engine to draw from all selected tanks rather than just their standard
32 # will draw evenly from all open tanks.
34 # Wing-tip tanks 1A and 4A are currently not used in the 1049H model, but provisions are built into
37 # Tank Indexes and corresponding tanks:
43 # The system works by having engines draw from small fuel line buffer tanks which are replenished f…
44 # the true tanks via nasal script according to tank and cross-feed valve settings. Engines never dr…
45 # directly from true tanks, though true tanks are described in the FDM so their weight affects the …
67 var tanks = props.globals.getNode("/consumables/fuel").getChildren("tank");
73 var fuel_presets = props.globals.getNode("/systems/fuel/tanks").getChildren("fuel_preset");
89 … # Find number of tanks open and with fuel >= fuel_used
98 … # Distribute fuel draw between cross-feeding capable tanks
99 …e(xfeed_list) > 0) { # Do we have any delivery-capable tanks?
100 …used / size(xfeed_list); # Split fuel request evenly between all cross-feeding tanks
110 … 2) # 2: Draw from secondary tank (2A,3A or wing-tip tanks 1A,2A if provided)
153 # if (tanks[tank_index].getChild("level-lb") == nil) { # Hack to deal with renamin…
154 # lbs = tanks[tank_index].getChild("level-lbs").getValue(); # to level-lbs in JBSsim
157 # lbs = tanks[tank_index].getChild("level-lb").getValue();
164 # return tanks[tank_index].getChild("level-lb").getValue();
168 return tanks[tank_index].getChild("level-lbs").getValue();
172 tanks[tank_index].getChild("level-gal_us").getValue();
175 tanks[tank_index].getChild("level-gal_us").setValue(gallons);
178 tanks[tank_index].getChild("capacity-gal_us").getValue();
245 …value = getprop("/systems/fuel/tanks/dialog-preset"); # Get name of preset selecte…
271 foreach (var tank; tanks) {
298 var dialog_preset = getprop("/systems/fuel/tanks/dialog-preset");
301 setprop("/systems/fuel/tanks/dialog-preset", preset_name);
321 else { set_tank_valve(i,0) } # Other tanks default to off
336 var lbs = getprop("systems/fuel/tanks/request-fuel-lbs");
343 ##################################### jettison the tanks ##########################################…