Jump to content
Sign in to follow this  
bpollock

EHSI and NAV1 VOR ID

Recommended Posts

Does anyone know how to add the VOR identifier to the EHSI? For instance, say I have Santa Monica VOR tuned, I would like the EHSI to display SMO....Is it possible to add the code to the XML gauge?

Share this post


Link to post
Share on other sites

Yes you can, if you are willing to edit the EHSI xml code...

 

Where do you want it displayed?

 

In place of the NAV frequency:

<Element id="Distance Readout Main Freq">
			   <FloatPosition>310.000,94.000</FloatPosition>
			   <Visibility>(A:NAV HAS DME:1, bool) 0 != (L:AP_NAV_SELECT_MODE) 0 == and (A:GPS drives nav1, bool) 0 == 

and</Visibility>
			   <GaugeText id="DME">
				  <Bold>false</Bold>
				  <Bright>True</Bright>
				  <FontFace>DISPLAY7</FontFace>
				  <FontColor>green</FontColor>
				  <FontHeight>20</FontHeight>
					   <GaugeString>%((A:NAV HAS DME:1, bool))
					
                                                   %{if}%((A:NAV IDENT:1, string))%!s!

						   %{else}
							  ----
						   %{end}</GaugeString>
				  <HorizontalAlign>RIGHT</HorizontalAlign>
				  <Size>120,22</Size>
				  <Transparent>True</Transparent>
			   </GaugeText>
			</Element>

Bert

Share this post


Link to post
Share on other sites

I have no problem editing the code....below preferably.

 

I need/want to see freq, dme and ID for any VOR/ILS tuned in NAV1. In a perfect world, would love to see NAV2 info on opposite side

Sorry Bert...just saw your code....if I can't have my cake and eat it too, your code will work for me....the id is the main thing I need, I can always look at my radio stack to make sure I have the right freq tuned....

 

Thanks for the code

Share this post


Link to post
Share on other sites

Below would work too...

<Element id="DME TIME 1">
				<FloatPosition>326.000,114.000</FloatPosition>
				<Visibility>(A:NAV HAS DME:1, bool) 0 != (L:AP_NAV_SELECT_MODE) 0 == and (A:GPS drives nav1, bool) 0 == and</Visibility>
				<GaugeText id="DME MIN">
				  <Bold>false</Bold>
				  <Bright>True</Bright>
				  <FontFace>DISPLAY7</FontFace>
				  <FontColor>green</FontColor>
				  <FontHeight>20</FontHeight>
					<GaugeString>%((A:NAV HAS DME:1, bool))
					%{if}%((A:NAV IDENT:1, string))%!s!
					%{else}--
					%{end}</GaugeString>
					<HorizontalAlign>RIGHT</HorizontalAlign>
					<Size>100,22</Size>
					<Transparent>True</Transparent>
				</GaugeText>
			</Element>

Bert

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • 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!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...