# Newbie in XML Gauges

## Recommended Posts

Hi to all: I am a newbie in programming XML of gauges and I have made some easy works where alone it was necessary to modify small things. Now my project is a little but complex and its somebody of you would need he can help me. I am modifing the RMI of the Beech Baron for one that is single RMI of VOR (VOR1 and 2). I have added him 2 flags of OFF every time that not this present a sign been worth of VOR. All this works well. Now the question comes I need that the needles move to the position of 3 o

##### Share on other sites
 Help AVSIM continue to serve you!Please donate today!

Hi Jose,If I understood you right, you need to add an if / else condition tothe value - element that defines the needle's rotation.It could be something like this:Value>(A:NAV1 signal,bool)if{ (A:Plane heading degrees gyro,radians) /-/ } els{ 1.57 }1.57 is 0.5 pi, so 90 degrees right. But maybe for your gauge an other value like 0 fits better.You might also try to substitute the NAV1 signal bool by a minimumsignal strenght of the NAV1 like this:Value>(A:NAV1 signal, number) abs 10 > if { (A:Plane heading degrees gyro,radians) /-/ } els{ 1.57 }I hope this helps.Herbert

##### Share on other sites

I will check your help. I need two condition IF. One , when the signal is OFF. The gauge display the "OFF" flag and the needle go to 90 deg. The second condition is when a ILS frec is selected. The flag is out of view, but the needle go 90 deg too.I try with your help. Thank You Very much.Jose Olliver

##### Share on other sites

So try this one:Value>(A:HSI GSI needle valid, bool)(A:NAV1 signal, number) abs 10 < || if { 1.57 } els{ (A:Plane heading degrees gyro,radians) /-/ }This causes a rotation value of 1.57 either when a glidescope signal is available or the NAV1 signal strenght < 10.Hope this helps,Herbert

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account

• Tom Allensworth,
Founder of AVSIM Online

• ### Hot Spots

• Flight Simulation's Premier Resource!

AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!