- Messages
- 10,158
- Country

Hey all,
Ive got a problem I cant seem to work out. I have some annunciator lights in the Learjet that turn on and off when working the landing gear system. Green on when gear is down and locked, green off when gear is up or on its way up (transition). Red lights on when in transition, red off when fully up or fully down.
So, I have 4 codes I ended up writing (new system). One for each light version; green on, off, red on, off. I have the green set functioning fine, but dang, I cannot seem to get the red versions to operate correctly. They either stay on or off.
NOTE: These are 'visibilities' of 3D objects. Diodes that are bright and dark, appear when a remote hidden gauge tells them to turn on and off. The landing light annunciator lights are thus controlled by this hidden gauge.
Does anyone know how to write a code for a landing gear annunciator light for 'in transition' and also one for when the gear is up or down fully? I cannot get anything to work. I have written controllers that turn them on and off. With percent, only 'near' seems to work. I cannot seem to get rng to work. I have tried quite a few variations.
I have tried perhaps 50 or 75 versions of writing this. Here is my latest one.
Note, above, I ended up making '2' versions of red-off as I couldn't seem to get them to 'mix' in the logic. This also didn't work.
Mind you, I had originally wanted to add 'test' mode to this, as well as batteries off mode (all lights show off), but I cannot even get these to work (red versions) correctly, so holding short before I also mix in test mode and battery circuit off mode.
Ive got a problem I cant seem to work out. I have some annunciator lights in the Learjet that turn on and off when working the landing gear system. Green on when gear is down and locked, green off when gear is up or on its way up (transition). Red lights on when in transition, red off when fully up or fully down.
So, I have 4 codes I ended up writing (new system). One for each light version; green on, off, red on, off. I have the green set functioning fine, but dang, I cannot seem to get the red versions to operate correctly. They either stay on or off.
NOTE: These are 'visibilities' of 3D objects. Diodes that are bright and dark, appear when a remote hidden gauge tells them to turn on and off. The landing light annunciator lights are thus controlled by this hidden gauge.
Does anyone know how to write a code for a landing gear annunciator light for 'in transition' and also one for when the gear is up or down fully? I cannot get anything to work. I have written controllers that turn them on and off. With percent, only 'near' seems to work. I cannot seem to get rng to work. I have tried quite a few variations.
I have tried perhaps 50 or 75 versions of writing this. Here is my latest one.
Code:
<!-- Landing Gear Warning Annunciator Lights -->
<!-- Green On Gear Down -->
<Element>
<Select>
<Value>
(L:LJ24B BATT MASTER LEFT, bool) 1 ==
(L:LJ24B BATT MASTER RIGHT, bool) 1 ==
(A:Gear center position,percent) 100 near
and and
if{ 1 (>L:LJ24B GearAnnunLites GreenOn, bool)
0 (>L:LJ24B GearAnnunLites GreenOff, bool) }
els{ 0 }
</Value>
</Select>
</Element>
<!-- Green Off Gear in Transition and Up -->
<Element>
<Select>
<Value>
(L:LJ24B BATT MASTER LEFT, bool) 1 ==
(L:LJ24B BATT MASTER RIGHT, bool) 1 ==
(A:Gear center position,percent) 98 <
and and
if{ 0 (>L:LJ24B GearAnnunLites GreenOn, bool)
1 (>L:LJ24B GearAnnunLites GreenOff, bool) }
els{ 0 }
</Value>
</Select>
</Element>
<!-- Red On Gear In Transition -->
<Element>
<Select>
<Value>
(L:LJ24B BATT MASTER LEFT, bool) 1 ==
(L:LJ24B BATT MASTER RIGHT, bool) 1 ==
(L:LJ24B GearAnnunLites RedOff, bool) 0 ==
and and
if{ 1 (>L:LJ24B GearAnnunLites RedOn, bool) }
els{ 0 }
</Value>
</Select>
</Element>
<!-- Red Off * Gear Down -->
<Element>
<Select>
<Value>
(L:LJ24B BATT MASTER LEFT, bool) 1 ==
(L:LJ24B BATT MASTER RIGHT, bool) 1 ==
(A:Gear center position,percent) 100 >
and and
if{ 1 (>L:LJ24B GearAnnunLites RedOff, bool) }
</Value>
</Select>
</Element>
<!-- Red Off * Gear Up -->
<Element>
<Select>
<Value>
(L:LJ24B BATT MASTER LEFT, bool) 1 ==
(L:LJ24B BATT MASTER RIGHT, bool) 1 ==
(A:Gear center position,percent) 0 <
and and
if{ 1 (>L:LJ24B GearAnnunLites RedOff, bool) }
</Value>
</Select>
</Element>
Note, above, I ended up making '2' versions of red-off as I couldn't seem to get them to 'mix' in the logic. This also didn't work.
Mind you, I had originally wanted to add 'test' mode to this, as well as batteries off mode (all lights show off), but I cannot even get these to work (red versions) correctly, so holding short before I also mix in test mode and battery circuit off mode.












