- Messages
- 1,468
- Country

I have discovered that if I load an aircraft after another then my electrical system is in reverse. That is (A:Electrical master battery,bool) is equal to 1, but my switch is in the off position. Consequently when I turn the battery switch on the power goes off!!! I need something extra in the code or another way of writing it.
The conflict is being causes by the addition of (L:switch_pos,bool) !=
I'm attempting to detect whether the switch is in the on or off position and then using that value.
If I load said aircraft first there is no problem. But, If I load it then another and then reload it I get the above problem.
Help appreciated
vololiberista
The conflict is being causes by the addition of (L:switch_pos,bool) !=
I'm attempting to detect whether the switch is in the on or off position and then using that value.
If I load said aircraft first there is no problem. But, If I load it then another and then reload it I get the above problem.
Help appreciated
vololiberista
Code:
<Gauge Name="Battery" Version="1.0">
<Element>
<Select>
<Value>(A:Electrical master battery,bool) (L:switch_pos,bool)</Value>
<Case Value="0">
<Image Name="FUEL_SWITCH_3_OFF.bmp"/>
</Case>
<Case Value="1">
<Image Name="FUEL_SWITCH_3_ON.bmp"/>
</Case>
</Select>
</Element>
<Mouse>
<Help ID="HELPID_GAUGE_BATTERY_SWITCH"/>
<Cursor Type="Hand"/>
<Click>(>K:TOGGLE_MASTER_BATTERY) 1 (>L:Sound_knob,enum) (L:switch_pos,bool) != if{ 0 (>L:switch_pos,bool) } els{ 1 (>L:switch_pos,bool) }</Click>
</Mouse>
</Gauge>
