- Messages
- 95
- Country

Hi folks....
I simply cannot get this to work... can anybody spot an error or offer advice ? I copied the code from other working objects and simply changed the A vars to suit.. but it simply doesn't work. The lights come on when spoilers are deployed but the flap movement has no effect.
In my plane there's a steady spoiler annunciation light when they are deployed, however, when flaps are also deployed beyond 13 degress (which I already figured in my case to be approx 25 percent) the spoiler light should then flash. So, I assume this can be accomplished using a single lump of xml code.. but.. I ain't nearly that good, I've only just learned to reed and rite
. So I decided on one lump of code for flaps less than 25pct and another for flaps more than 25pct (applied to a duplicate 'spoiler light' part). Anyway.. here's the confounded code.......
Skip
I simply cannot get this to work... can anybody spot an error or offer advice ? I copied the code from other working objects and simply changed the A vars to suit.. but it simply doesn't work. The lights come on when spoilers are deployed but the flap movement has no effect.
In my plane there's a steady spoiler annunciation light when they are deployed, however, when flaps are also deployed beyond 13 degress (which I already figured in my case to be approx 25 percent) the spoiler light should then flash. So, I assume this can be accomplished using a single lump of xml code.. but.. I ain't nearly that good, I've only just learned to reed and rite
Skip
Code:
<PartInfo>
<Name>J200_ANNUN_SPOILER_LITE</Name>
<Visibility>
<Parameter>
<Code>
(A:SPOILERS HANDLE POSITION, percent) 2 >
(A:FLAPS HANDLE INDEX, number) 25 <
(A:ELECTRICAL MASTER BATTERY, bool) 1 ==
and
and
(L:J200_ANNUN_test_button, bool) 1 ==
or
if{ 100 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>J200_ANNUN_SPOILERFLASH_LITE</Name>
<Visibility>
<Parameter>
<Code>
(A:SPOILERS HANDLE POSITION, percent) 2 >
(A:FLAPS HANDLE INDEX, number) 25 >
(A:ELECTRICAL MASTER BATTERY, bool) 1 ==
(P:Absolute time, seconds) 0.25 % 0.125 >
and
and
and
(L:J200_ANNUN_test_button, bool) 1 ==
or
if{ 100 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>