- Messages
- 81
- Country

I need to set the Fuel Selectors of a 4 engined aircraft, 1&3 to the Left and 2&4 to the Right tanks, when the model is first loaded The Balance cock, (L:xfeed,bool), simulates a connection between the tanks before the Fuel Valves.
I have an <Update> as the first section of code which will not recognize the (>K:FUEL_SELECTOR_n_...) entries and so the model starts with the 'ALL' tanks, default, option selected
The section of code for the Balance cock works properly,but not in update.
This is the style that usually works for me.
----------------First Go
<!-- This sets the start position to Main tanks and balance cock off. -->
<Update>(L:Firstrun,bool) 0 ==
if{{ (>K:FUEL_SELECTOR_LEFT) (>K:FUEL_SELECTOR_2_RIGHT) (>K:FUEL_SELECTOR_3_LEFT) (>K:FUEL_SELECTOR_4_RIGHT) 1 (>L:1cock,bool) 1 (>L:2cock,bool) 0 (>L:xfeed,bool) 1 (>L:Firstrun,bool)
}
</Update>
------------------------------------
I also tried the code section used in the Balance cock.
--------------------------Second Go
<!-- This sets the start position to Main tanks and balance cock off. -->
<Update>(L:Firstrun,bool) 0 ==
if{ 1 (>L:1cock,bool) 1 (>L:2cock,bool) 0 (>L:xfeed,bool)
(A:Recip eng fuel tank selector:1,enum) 2 !=
if{ (>K:FUEL_SELECTOR_LEFT) }
(A:Recip eng fuel tank selector:3,enum) 2 !=
if{ (>K:FUEL_SELECTOR_2_RIGHT) }
(A:Recip eng fuel tank selector:2,enum) 3 !=
if{ (>K:FUEL_SELECTOR_3_LEFT) }
(A:Recip eng fuel tank selector:4,enum) 3 !=
if{ (>K:FUEL_SELECTOR_4_RIGHT) }
1 (>L:Firstrun,bool)
-----------------------
I have an <Update> as the first section of code which will not recognize the (>K:FUEL_SELECTOR_n_...) entries and so the model starts with the 'ALL' tanks, default, option selected
The section of code for the Balance cock works properly,but not in update.
This is the style that usually works for me.
----------------First Go
<!-- This sets the start position to Main tanks and balance cock off. -->
<Update>(L:Firstrun,bool) 0 ==
if{{ (>K:FUEL_SELECTOR_LEFT) (>K:FUEL_SELECTOR_2_RIGHT) (>K:FUEL_SELECTOR_3_LEFT) (>K:FUEL_SELECTOR_4_RIGHT) 1 (>L:1cock,bool) 1 (>L:2cock,bool) 0 (>L:xfeed,bool) 1 (>L:Firstrun,bool)
}
</Update>
------------------------------------
I also tried the code section used in the Balance cock.
--------------------------Second Go
<!-- This sets the start position to Main tanks and balance cock off. -->
<Update>(L:Firstrun,bool) 0 ==
if{ 1 (>L:1cock,bool) 1 (>L:2cock,bool) 0 (>L:xfeed,bool)
(A:Recip eng fuel tank selector:1,enum) 2 !=
if{ (>K:FUEL_SELECTOR_LEFT) }
(A:Recip eng fuel tank selector:3,enum) 2 !=
if{ (>K:FUEL_SELECTOR_2_RIGHT) }
(A:Recip eng fuel tank selector:2,enum) 3 !=
if{ (>K:FUEL_SELECTOR_3_LEFT) }
(A:Recip eng fuel tank selector:4,enum) 3 !=
if{ (>K:FUEL_SELECTOR_4_RIGHT) }
1 (>L:Firstrun,bool)
}
</Update>-----------------------

