Hi,
I have been trying to make a fuel selector system that determines which tanks the engines are fed by depending on the fuel pumps that are turned on...
I have read several threads on this, and I think I am really close to making it work, however, I can't work out what variable to "look" at to check that my settings are correct...
The above code does find the correct settings for the fuel selector and then looking at the (A:FUEL TANK SELECTOR 1, enum) value I see that it is indeed set in FS. However, the (A:FUEL SELECTED QUANTITY ,gallons) value is not the expected value - in fact, it is always zero! What is wrong?
Geoff
I have been trying to make a fuel selector system that determines which tanks the engines are fed by depending on the fuel pumps that are turned on...
I have read several threads on this, and I think I am really close to making it work, however, I can't work out what variable to "look" at to check that my settings are correct...
Code:
<!-- Fuel from RIGHT -->
<Element>
<Select>
<Value>(L:RFUELPUMPFW, bool) (L:RFUELPUMPBW, bool) or if{ 1 (>L:Rfuelfeed, bool) } els{ 0 (>L:Rfuelfeed, bool) }</Value>
</Select>
</Element>
<!-- Fuel from CENTER -->
<Element>
<Select>
<Value>(L:CFUELPUMPFW, bool) (L:CFUELPUMPBW, bool) or if{ 1 (>L:Cfuelfeed, bool) } els{ 0 (>L:Cfuelfeed, bool) }</Value>
</Select>
</Element>
<!-- Fuel from LEFT -->
<Element>
<Select>
<Value>(L:LFUELPUMPFW, bool) (L:LFUELPUMPBW, bool) or if{ 1 (>L:Lfuelfeed, bool) } els{ 0 (>L:Lfuelfeed, bool) }</Value>
</Select>
</Element>
<!-- Fuel from LEFT or RIGHT X-FEED -->
<Element>
<Select>
<Value>(L:Lfuelfeed, bool) 1 == (L:Rfuelfeed, bool) 1 == OR (L:FuelXfeed, bool) AND if{ 1 (>L:Lfuelfeed, bool) 1 (>L:Rfuelfeed, bool) }</Value>
</Select>
</Element>
<!-- Fuel from RIGHT ONLY -->
<Element>
<Select>
<Value>(L:Rfuelfeed, bool) (L:Cfuelfeed, bool) ! && (L:Lfuelfeed, bool) ! & if{ 3 (>L:fset,enum) }</Value>
</Select>
</Element>
<!-- Fuel from CENTER ONLY -->
<Element>
<Select>
<Value>(L:Rfuelfeed, bool) ! (L:Cfuelfeed, bool) && (L:Lfuelfeed, bool) ! & if{ 6 (>L:fset,enum) }</Value>
</Select>
</Element>
<!-- Fuel from LEFT ONLY -->
<Element>
<Select>
<Value>(L:Rfuelfeed, bool) ! (L:Cfuelfeed, bool) ! && (L:Lfuelfeed, bool) & if{ 2 (>L:fset,enum) }</Value>
</Select>
</Element>
<!-- Fuel from L & C -->
<Element>
<Select>
<Value>(L:Rfuelfeed, bool) ! (L:Cfuelfeed, bool) && (L:Lfuelfeed, bool) & if{ (A:FUEL TANK CENTER LEVEL, percent) 11 < (A:FUEL TOTAL QUANTITY, gallons) (A:FUEL TANK CENTER QUANTITY,
gallons) > && if{ 2 (>L:fset,enum) } els{ 6 (>L:fset,enum) }}</Value>
</Select>
</Element>
<!-- Fuel from R & C -->
<Element>
<Select>
<Value>(L:Rfuelfeed, bool) (L:Cfuelfeed, bool) && (L:Lfuelfeed, bool) ! & if{ (A:FUEL TANK CENTER LEVEL, percent) 11 < (A:FUEL TOTAL QUANTITY, gallons) (A:FUEL TANK CENTER QUANTITY,
gallons) > && if{ 3 (>L:fset,enum) } els{ 6 (>L:fset,enum) }}</Value>
</Select>
</Element>
<!-- Fuel from L & R -->
<Element>
<Select>
<Value>(L:Rfuelfeed, bool) (L:Cfuelfeed, bool) ! && (L:Lfuelfeed, bool) & if{ 16 (>L:fset,enum) }</Value>
</Select>
</Element>
<!-- Fuel from ALL Tanks -->
<Element>
<Select>
<Value>(L:Rfuelfeed, bool) (L:Cfuelfeed, bool) && (L:Lfuelfeed, bool) & if{ (A:FUEL TANK CENTER LEVEL, percent) 11 < (A:FUEL TOTAL QUANTITY, gallons) (A:FUEL TANK CENTER QUANTITY,
gallons) > && if{ 1 (>L:fset,enum) } els{ 6 (>L:fset,enum) }}</Value>
</Select>
</Element>
<!-- Feed unavailable force selector to zero setting -->
<Element>
<Select>
<Value>(L:FENG1AVAIL, enum) 0 == (L:FENG2AVAIL, enum) 0 == && if{ 0 (>L:fset,enum) }</Value>
</Select>
</Element>
<!-- Change sim setting when local setting has changed -->
<Element>
<Select>
<Value>(L:fset,enum) (L:Fsetprev,enum) != if{ (L:fset,enum) (>K:FUEL_SELECTOR_SET) (L:fset,enum) (>L:fsetprev,enum) }</Value>
</Select>
</Element>
The above code does find the correct settings for the fuel selector and then looking at the (A:FUEL TANK SELECTOR 1, enum) value I see that it is indeed set in FS. However, the (A:FUEL SELECTED QUANTITY ,gallons) value is not the expected value - in fact, it is always zero! What is wrong?
Geoff
