- Messages
- 1,468
- Country

I'm having a problem with two switches fighting each other!! i.e when one toggles off the the other toggles on and then won't turn off.
I'm trying to do two functions with one switch and perhaps that's not possible. The functions are Flight Director and Heading Lock. I need the heading lock for the INS gauge. There are two switches: AP2 which toggles the FD and HL (as above) and AP1 which toggles the AP on and off.
What happens is as follows:-
AP off FD off <----- that's OK
AP off FD on <----- that's OK
But, I cannot now turn off the FD
AP on FD on <----- that's OK
Now I can turn FD off
AP on FD off <----- that's OK
But, what happens now is
AP off FD on !!!!!!! <----- that's NOT OK
Here's the relevant code:-
vololiberista
[/COLOR]
I'm trying to do two functions with one switch and perhaps that's not possible. The functions are Flight Director and Heading Lock. I need the heading lock for the INS gauge. There are two switches: AP2 which toggles the FD and HL (as above) and AP1 which toggles the AP on and off.
What happens is as follows:-
AP off FD off <----- that's OK
AP off FD on <----- that's OK
But, I cannot now turn off the FD
AP on FD on <----- that's OK
Now I can turn FD off
AP on FD off <----- that's OK
But, what happens now is
AP off FD on !!!!!!! <----- that's NOT OK
Here's the relevant code:-
vololiberista
Code:
[COLOR="Blue"]<Element>
<Position X="127" Y="0"/>
<Select>
<Value>(A:AUTOPILOT MASTER,bool)</Value>
<Case Value="1">
<Image Name="AUTOPILOT_AP1.bmp" ImageSizes="26,46"/>
</Case>
</Select>
</Element>
<Area Top="0" Left="127" Width="26" Height="46">
<Tooltip ID="TOOLTIPTEXT_AUTOPILOT_MASTER"/>
<Cursor Type="Hand"/>
<Click>(A:AUTOPILOT MASTER, bool) 1 == if{ 0 (>L:AP ON,number) } els{ 1 (>L:AP ON,number) } 0 (>K:AP_MASTER) 1 (>K:AP_ALT_HOLD_ON) 0 (>K:AP_ALT_VAR_SET_ENGLISH) (A:Vertical speed,feet per minute) (>K:AP_VS_VAR_SET_ENGLISH)</Click>
</Area>[/COLOR]
[COLOR="SeaGreen"]<Element>
<Position X="231" Y="0"/>
<Select>
<Value>(A:Autopilot heading lock, bool) (A:AUTOPILOT FLIGHT DIRECTOR ACTIVE, bool)</Value>
<Case Value="1">
<Image Name="AUTOPILOT_AP2.bmp" ImageSizes="26,46"/>
</Case>
</Select>
</Element>
<Area Top="0" Left="231" Width="26" Height="46">
<Tooltip>FD Eng / Hdg - INS LOCK</Tooltip>
<Cursor Type="Hand"/>
<Click>(>K:TOGGLE_FLIGHT_DIRECTOR) (>K:AP_PANEL_HEADING_HOLD)</Click>
</Area>


