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

FSXA Mach indicator

For a mach dial that reads from the IAS pointer i used this code as it keeps the range small for animation keys. And it's how the mach dial diaphragm get's it's pressure.

1. I first fly at sea level and make sure the pointer aligns to the mach dial at all ranges from 258 to 400 knots.
2. Then i use a tool window and fly up every value of 5.0 from this code below. And rotate the mach dial and set a key at keyframe 5 for 5.0 and 10 for 10.0 and so on....

Code:
(A:SEA LEVEL PRESSURE, inHg) (A:AMBIENT PRESSURE, inHg) - (>L:MACHSHIFT,number)
 
New and improved method for setting animation keys.
With this new scale key 57 is altitude 68K feet.
I use this variable (L:MACHSHIFT,number) in a test window to match the ambient pressure value with the animation keys.
Keys: 0,5,10,15,20,25,30,35,40,45,50,55,57
------------------------------------
1. Slew up until you reach 57 from the test window and check the barber pole position. Mach .81 is the max mach speed in the cfg and will use the barber pole to set keys.
2. I align the barber pole position to mach .81 while at altitude pressure 57 and place an animation key at 57.
3. I lower altitude until the test window shows 50 then pause and make a note where the barber pole is aligned and rotate the mach card to mach .81 again.
4. I repeat steps until the barber pole no longer moves around the VMO which was around 22K to 24K feet.
5. Now i keep lowering every 5 and check the mach from my test window and match the remaining keys matching mach speeds.
------------------------------------


Increased the value to increase the animation keys which in return gives better tolerance between keys. This larger scale also allowed the variable value to match the animation keys.
Code:
(A:SEA LEVEL PRESSURE, inHg) 2.0 * (A:AMBIENT PRESSURE, inHg) 2.0 * - (>L:MACHSHIFT,number)

I found after testing this is very accurate for a mach dial that rotates and uses the airspeed to show the mach value. Toughest coding i have ran into so far!
 
Back
Top