Was messing around with an xml gauge, but it doesn't seem to work. Was hoping the experts here could chime in and help this rookie xml guy.
Here is my code:
<Gauge Name="Autoflaps" Version="1.0">
<Element>
<Update Frequency="1"/>
(A:RADIO HEIGHT,feet)1000 < (A:RADIO HEIGHT,feet)5 > &&
if {
100 (> K:FLAPS HANDLE, Percent)
1 (> K:LIGHT STROBE, bool)
1 (> K:SMOKE ENABLE, bool)
}
(A:RADIO HEIGHT,feet)5 <
if {
0 (> K:FLAPS HANDLE, Percent)
0 (> K:LIGHT STROBE, bool)
0 (> K:SMOKE ENABLE, bool)
}
</Update>
</Element>
</Gauge>
Basically, I want the flaps, strobe, and smoke to automatically turn on below 5,000 feet and then turn off at 5 feet.
Thanks in advance for any advice.
Scott
Here is my code:
<Gauge Name="Autoflaps" Version="1.0">
<Element>
<Update Frequency="1"/>
(A:RADIO HEIGHT,feet)1000 < (A:RADIO HEIGHT,feet)5 > &&
if {
100 (> K:FLAPS HANDLE, Percent)
1 (> K:LIGHT STROBE, bool)
1 (> K:SMOKE ENABLE, bool)
}
(A:RADIO HEIGHT,feet)5 <
if {
0 (> K:FLAPS HANDLE, Percent)
0 (> K:LIGHT STROBE, bool)
0 (> K:SMOKE ENABLE, bool)
}
</Update>
</Element>
</Gauge>
Basically, I want the flaps, strobe, and smoke to automatically turn on below 5,000 feet and then turn off at 5 feet.
Thanks in advance for any advice.
Scott







