- Messages
- 95
- Country

Hi folks....
I'm wondering if somebody can help me with this little piece of code, it's for a 'FINAL' light on my project plane's autopilot, used during approach. Currently, the light comes ON when... The Glideslope is being 'held' AND the Localiser is being 'held' AND Flaps are greater than 13 degrees AND the Outer Marker has been passed (and the relevant switches are on etc). It works fine but the light goes out after I pass the Outer Marker (the boolean condition having returned to '0')... How can I get the light to stay on after that particular condition has passed ? i.e. I need that light to 'latch' on and stay on until the remainder of the approach.
Many thanks.
Skip
<PartInfo>
<Name>J200_AP_LITE_fnl_vis</Name>
<Visibility>
<Parameter>
<Code>
(A:AUTOPILOT GLIDESLOPE HOLD, bool) 1 ==
(A:AUTOPILOT NAV1 LOCK, bool) 1 ==
(A:MARKER BEACON STATE, enum) 1 ==
(A:FLAPS HANDLE INDEX, number) 25 < ==
(L:J200_APMasterSW,bool) 50 * and
(L:J200_AP_test_button, bool) 1 == or
if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>
I'm wondering if somebody can help me with this little piece of code, it's for a 'FINAL' light on my project plane's autopilot, used during approach. Currently, the light comes ON when... The Glideslope is being 'held' AND the Localiser is being 'held' AND Flaps are greater than 13 degrees AND the Outer Marker has been passed (and the relevant switches are on etc). It works fine but the light goes out after I pass the Outer Marker (the boolean condition having returned to '0')... How can I get the light to stay on after that particular condition has passed ? i.e. I need that light to 'latch' on and stay on until the remainder of the approach.
Many thanks.
Skip
<PartInfo>
<Name>J200_AP_LITE_fnl_vis</Name>
<Visibility>
<Parameter>
<Code>
(A:AUTOPILOT GLIDESLOPE HOLD, bool) 1 ==
(A:AUTOPILOT NAV1 LOCK, bool) 1 ==
(A:MARKER BEACON STATE, enum) 1 ==
(A:FLAPS HANDLE INDEX, number) 25 < ==
(L:J200_APMasterSW,bool) 50 * and
(L:J200_AP_test_button, bool) 1 == or
if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>


