Jump to content

Archived

This topic is now archived and is closed to further replies.

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

  • 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.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    33%
    $8,485.00 of $25,000.00 Donate Now
×
×
  • Create New...