Jump to content
Sign in to follow this  
CaptKornDog

Searching for Simple Numeric Machmeter Gauge File

Recommended Posts

Hello all,

 

I'm working on a small 2d panel mod and I'm wondering if anyone knows where I can find a simple, numeric Machmeter gauge file for FSX?  Digital or analog is fine, but prefer a small number display only, rather than a full round dial/needle gauge.  The only one I could find is compatible only for FS98-FS9 (FSX throws an incompatible flag).

 

Thanks!

 

 


Kyle Weber (Private Pilot, ASEL; Flight Test Engineer)
Check out my repaints and downloads, all right here on AVSIM

Share this post


Link to post
Share on other sites

Here you go.

 

1. Copy the code below in it's entirety and paste into a blank .txt document.

2. Rename the new text document to SimpleMach.xml

3. Create a folder in FSX/Gauges called SimpleMach

4. Place the newly created SimpleMach.xml file into the newly created SimpleMach folder.

5. The panel syntax is -

 

gaugeXX=SimpleMach!SimpleMach, XX, YY, XX, YY

 

The native size is 30 x 15

 

Note - There are some user adjustment to suit. See comments in code.

<Gauge Name="Simple MACH Display" Version="1.0">
    
	<Comment> THE FOLLOWING MACROS ARE USER PREFERENCES, CHANGE VALUES TO SUIT</Comment>

	<!-- What bus is this attached to ? 0 = Avionics, 1 = Main, 2 = Battery, 3 = Hot Battery  4 = Always On-->
	<Macro Name="PWR">4</Macro>

	<!-- Min voltage for unit to run -->
	<Macro Name="MINPWR">12</Macro>

	<!-- Min MACH for unit to display MACH otherwise "dashes"  -->
	<Macro Name="MINMACH">0.40</Macro>

	<Comment> END USER PREFRENCES </Comment>                          


	<Macro Name="SBHOT">(A:Electrical Hot Battery Bus Voltage, Volts)</Macro>
	<Macro Name="SBATT">(A:Electrical Battery Bus Voltage, Volts)</Macro>
	<Macro Name="SMAIN">(A:Electrical Main Bus Voltage, Volts)</Macro>
	<Macro Name="SAVIO">(A:Electrical Avionics Bus Voltage, Volts)</Macro>
	<Macro Name="PWRAVAIL">@MINPWR @SBHOT @SBATT @SMAIN @SAVIO 5 @PWR case @MINPWR >=</Macro>


	<Element Name="POWER DERIVED DISPLAY">
	<Visible>@PWRAVAIL</Visible>
		<Element Name="DISPLAY">
		<Position X="0" Y="0"/>
			<!-- ADJUST TEXT FONTS, SIZE, COLOR etc HERE -->
			<FormattedText Bright="Yes" X="30" Y="15" FontSize="12" FontWeight="800" Length="4" Fixed="Yes" VerticalAlign="Center" Font="Quartz" BackgroundColor="Black" Color="White">
				<String>%((A:AIRSPEED MACH, mach) s1 @MINMACH <)%{if}%-.--%{else}%(l1)%!03.2f!%{end}%</String>
			</FormattedText>
		</Element>
	</Element>

	<Mouse>
		<Tooltip ID="">%MACH = %((A:AIRSPEED MACH, mach) s1 @MINMACH <)%{if}%-.--%{else}%( l1 )%!03.2f!%{end}%</Tooltip>
	</Mouse>

</Gauge>

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Share this post


Link to post
Share on other sites

Wow!  That is perfect, thank you so much!  I didn't expect someone to actually go out and code one for me from scratch (especially in less than a day).

 

Very much appreciated!!


Kyle Weber (Private Pilot, ASEL; Flight Test Engineer)
Check out my repaints and downloads, all right here on AVSIM

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...