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!

 

 

Share this post


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

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>

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

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