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

P3D v2 Airspeed Dial - rotates twice

Messages
1,361
Country
canada
Does anyone off the top of their head know the reason why and XML dial for airspeed would rotate twice around the dial and land at the correct airspeed.

I have used an existing airspeed XML - 20 - 260 and wanted it to go 40 - 220. I am using the rotate object for the needle and the X Y non linearity values for the rotation. 200 down to 100 knots work , but when the airspeed drops below 100 it starts moving faster and rotates past the lower limit.

Are the X Y points that picky? What spot on the needle graphic represents the X Y position for the needle position?

This is not the real numbers - just an example of what I am using.

<Nonlinearity>
<Item Value="40" X="151" Y="30"/>
<Item Value="60" X="231" Y="55"/>
<Item Value="80" X="270" Y="112"/>
<Item Value="100" X="271" Y="187"/>
<Item Value="120" X="222" Y="254"/>
<Item Value="140" X="134" Y="276"/>
<Item Value="160" X="61" Y="238"/>
<Item Value="180" X="27" Y="172"/>
<Item Value="200" X="29" Y="119"/>
<Item Value="220" X="51" Y="75"/>
</Nonlinearity>

Don't have the code to post at the moment - just wondered if someone has run into this issue and what they had to do/check adjust.
 
Ron, in short the X,Y points are the coordinates of where on the background bitmap the pointy end of the needle would be at the specified "speed."

The simplest method to determine the coordinates X,Y is to load the background bitmap in Photoshop (or equivalent) then use the mouse pointer to find and record the precise X and Y values for each major speed index line.
 
And perhaps setting a 0 value in your nonlinearity table would help with your startup problem?
 
I use the technique that Bill Leaming uses. I set coordinates to Pixels in Photoshop, load up the graphic, then look up all the points and get the XY coordinates and write them directly into the gauge XML code.
 
And the winner is .......

Tom ... thanks guys

Leaving out the zero cause the system to do strange things. Thought the points north would "replace" the zero point and the min of 40 would stop the dial from going below 40, but no. You neeed the zero. At least in my case. Working nicely now.

so new code

<Rotate>
<Value Minimum="0" Maximum="220">(A:Airspeed select indicated or true,KNOT)</Value>
<Nonlinearity>
<Item Value="0" X="92" Y="19"/>
<Item Value="20" X="115" Y="24"/>
<Item Value="40" X="132" Y="29"/>
<Item Value="60" X="164" Y="65"/>
<Item Value="80" X="162" Y="122"/>
<Item Value="100" X="121" Y="163"/>
<Item Value="120" X="71" Y="160"/>
<Item Value="140" X="33" Y="131"/>
<Item Value="160" X="24" Y="95"/>
<Item Value="180" X="25" Y="69"/>
<Item Value="200" X="46" Y="41"/>
<Item Value="220" X="75" Y="26"/>
</Nonlinearity>
 
If you need the needle to not go lower than 40 you could just use the X and Y coords at value=40 and copy those to Value=0 and Value=20. e.g.

Code:
<Item Value="0" X="132" Y="29"/>
<Item Value="20" X="132" Y="29"/>
<Item Value="40" X="132" Y="29"/>
 
Back
Top