• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Prop RPM Gauge(Solved)

krispy1001

Resource contributor
Messages
707
Country
unitedstates
Hi Everyone!

I am working on a MFD and I am having issues with my Prop RPM Needle movement. As you can see in the image below, I have an Rpm Gauge with needle and a text read-out of the rpm under it. Text rpm read out works good, but needle does not move. I have attached my code for the MFD below. And the code for my Prop Rpm Needle is start with <Element id="RPM Needle">.

Thank you for any help, Kris :)

Code:
<?xml version="1.0" encoding="UTF-16"?>

<SimGauge.Gauge id="Buc3 MFD Gauge" ArtDirectory="C:\Kris_Work\FSX_Gauges\Buc3_Gauges\Buc3_MFD">
    <FloatPosition>0.000,0.000</FloatPosition>
    <Image id="MFD1.bmp" Name="MFD1.bmp">
        <Transparent>True</Transparent>
        <Bright>True</Bright>
    </Image>
    <Element id="SP,VS,Alt Gauge">
        <FloatPosition>95.000,150.000</FloatPosition>
        <Image id="SpVsAlt.bmp" Name="SpVsAlt.bmp">
            <Transparent>True</Transparent>
            <Bright>True</Bright>
        </Image>
        <Element id="Air Speed">
            <FloatPosition>80.000,20.000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Bright>True</Bright>
                <FontColor>white</FontColor>
                <FontFace>TIMES NEW ROMAN</FontFace>
                <FontHeight>36</FontHeight>
                <GaugeString>%((A:AIRSPEED TRUE, knot) 1 div)%!3d! kts</GaugeString>
                <Size>200,40</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="Virtical Speed">
            <FloatPosition>80.000,95.000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Bright>True</Bright>
                <FontColor>white</FontColor>
                <FontFace>TIMES NEW ROMAN</FontFace>
                <FontHeight>36</FontHeight>
                <GaugeString>%((A:VERTICAL SPEED, Feet per second) 1 div)%!3d! fps</GaugeString>
                <Size>200,40</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
        <Element id="Altitude">
            <FloatPosition>80.000,162.000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Bright>True</Bright>
                <FontColor>white</FontColor>
                <FontFace>TIMES NEW ROMAN</FontFace>
                <FontHeight>36</FontHeight>
                <GaugeString>%((A:INDICATED ALTITUDE, Feet) 1 div)%!3d! ft</GaugeString>
                <Size>200,40</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
    </Element>
    <Element id="Engine Stats">
        <FloatPosition>97.000,21.000</FloatPosition>
        <Image id="EngineStats.bmp" Name="EngineStats.bmp">
            <Transparent>True</Transparent>
            <Bright>True</Bright>
            <Luminous>True</Luminous>
        </Image>
        <Element id="RPM">
            <FloatPosition>28.000,114.000</FloatPosition>
            <GaugeText id="RPM Text Readout">
                <Bold>True</Bold>
                <Bright>True</Bright>
                <FontColor>white</FontColor>
                <FontFace>TIMES NEW ROMAN</FontFace>
                <FontHeight>10</FontHeight>
                <GaugeString>%((A:PROP RPM:1,RPM))%!4d! RPM</GaugeString>
                <Size>50,13</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>


        <Element id="RPM Needle">
            <FloatPosition>50.500,72.000</FloatPosition>
            <Image id="needle.bmp" Name="needle.bmp">
                <Transparent>True</Transparent>
                <Axis>3.000,40.000</Axis>
                <Bright>True</Bright>
                <Luminous>True</Luminous>
            </Image>
            <Rotation id="Rotation">
                <PointsTo>NORTH</PointsTo>
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>30.000</Maximum>
                    <Script>((A:PROP RPM:1,RPM) 100 /))</Script>
                </Expression>
                <NonlinearityTable id="NonlinearityTable">
                    <NonlinearityEntry id="0">
                        <ExpressionResult>0.000</ExpressionResult>
                        <FloatPosition>28.500,90.500</FloatPosition>
                    </NonlinearityEntry>
                    <NonlinearityEntry id="5">
                        <ExpressionResult>5.000</ExpressionResult>
                        <FloatPosition>25.000,68.000</FloatPosition>
                    </NonlinearityEntry>
                    <NonlinearityEntry id="10">
                        <ExpressionResult>10.000</ExpressionResult>
                        <FloatPosition>34.000,49.000</FloatPosition>
                    </NonlinearityEntry>
                    <NonlinearityEntry id="15">
                        <ExpressionResult>15.000</ExpressionResult>
                        <FloatPosition>51.000,41.000</FloatPosition>
                    </NonlinearityEntry>
                    <NonlinearityEntry id="20">
                        <ExpressionResult>20.000</ExpressionResult>
                        <FloatPosition>68.000,49.000</FloatPosition>
                    </NonlinearityEntry>
                    <NonlinearityEntry id="30">
                        <ExpressionResult>30.000</ExpressionResult>
                        <FloatPosition>74.000,93.000</FloatPosition>
                    </NonlinearityEntry>
                </NonlinearityTable>
                <Delay id="Delay">
                    <DelayValue>15.000</DelayValue>
                </Delay>
            </Rotation>
        </Element>


        <Element id="% Power">
            <FloatPosition>210.000,114.000</FloatPosition>
            <GaugeText id="GaugeText">
                <Bold>True</Bold>
                <Bright>True</Bright>
                <FontColor>white</FontColor>
                <FontFace>TIMES NEW ROMAN</FontFace>
                <FontHeight>10</FontHeight>
                <GaugeString>%((A:GENERAL ENG THROTTLE LEVER POSITION:1,Percent))%!3d! Power</GaugeString>
                <Size>40,13</Size>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>
    </Element>
</SimGauge.Gauge>

upload_2017-3-1_15-33-40.png
 
Back
Top