- Messages
- 4
- Country
I’m new to XML gauge programming. I’m trying to create a STALL WARNING light gauge. The light should illuminate when airspeed less than 170 knots, when flaps are less than 5 degrees, and when the aircraft is off the ground. If I remove the SIM ON GROUND bool, the light illuminates after landing, when on the ground.
Any help would be greatly appreciated
Here is my guess work trouble code:
<?xml version="1.0" encoding="utf-8"?>
<Gauge Name="727 FLAPS Warning" Version="1.1">
<Element>
<Select>
<Value>
(A: SIM ON GROUND, bool) 0;
(A:AIRSPEED INDICATED, knots) 170 < and
if{ 1 (A:Trailing edge flaps0 left percent,percent) 10 < } els {1}
</Value>
<Case Value="0">
<Image Name="lightoff.bmp"/>
</Case>
<Case Value="1">
<Image Name="lighton.bmp"/>
</Case>
</Select>
</Element>
</Gauge>
Any help would be greatly appreciated
Here is my guess work trouble code:
<?xml version="1.0" encoding="utf-8"?>
<Gauge Name="727 FLAPS Warning" Version="1.1">
<Element>
<Select>
<Value>
(A: SIM ON GROUND, bool) 0;
(A:AIRSPEED INDICATED, knots) 170 < and
if{ 1 (A:Trailing edge flaps0 left percent,percent) 10 < } els {1}
</Value>
<Case Value="0">
<Image Name="lightoff.bmp"/>
</Case>
<Case Value="1">
<Image Name="lighton.bmp"/>
</Case>
</Select>
</Element>
</Gauge>