I have a modeled switch in my virtual cockpit for transferring fuel forwards, the switch works well except, it will not 'turn off fuel transfer when the switch is off. I'm trying to avoid a race condition with a previous version of the xml logic and I've tried, but I can't see what I'm doing wrong, although I clearly have something wrong.
The logic below is that if the switch is 1, and fuel transfer mode is 0 (auto) then transfer fuel forwards. Else don't. What am I doing wrong?!
<Element>
<Select>
<Value>
(L:forwardtransfer_switch,bool) 1 == ;
(A:FUEL SELECTED TRANSFER MODE,enum) 0 == ;
&&
if{ (>K:SET_FUEL_TRANSFER_FORWARD) }
els{ 0 (K:SET_FUEL_TRANSFER_OFF) }
</Value>
</Select>
</Element>
The logic below is that if the switch is 1, and fuel transfer mode is 0 (auto) then transfer fuel forwards. Else don't. What am I doing wrong?!
<Element>
<Select>
<Value>
(L:forwardtransfer_switch,bool) 1 == ;
(A:FUEL SELECTED TRANSFER MODE,enum) 0 == ;
&&
if{ (>K:SET_FUEL_TRANSFER_FORWARD) }
els{ 0 (K:SET_FUEL_TRANSFER_OFF) }
</Value>
</Select>
</Element>

