• 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 Scale problem with digit display

Messages
160
Country
germany
Working on my new project, a T206H Turbine Converstion.

Some of my engine displays have beside 3D needles also digital digits of a gauge.

27427256lr.jpg


But the values of animated needle of modeldef does not correspond with the gauge. Modeldev:

Code:
  <PartInfo>
  <Name>needle_trq</Name>
  <AnimLength>100</AnimLength>
  <Animation>
  <Parameter>
  <Sim>
  <Variable>ENG TORQUE:1</Variable>
  <Units>foot pounds</Units>
  <Scale>0.06</Scale>
  </Sim>
  </Parameter>
  </Animation>
  </PartInfo>

and the string part of gauge xml to show the digits.

Code:
<String> 
%((A:ENG1 TORQUE, ft-lbs))%!2.1f! 
</String>

How can I get the scale of modeldef needle to my string of the gauge? Any help would be great.

Thomas
 
It has to do with the animation istelf I think. a step of one frame should equal a step of 16.66666 lbs*ft as far as I saw it from the code.
Did you make sure this applies to how it's animated?

Also judging by the scale of the gauge the animation will be non linear.
 
Dave, the animations of needles are working great.

For scale I used there

keyframes / max simvar = scale

All is fine there, but for the string of my gauge, something is missing and I don´t have any idea to start fixing this.

The displayed value of the gauge should be not 6.2, better would be 15.0 to 17.0...

Thomas
 
Last edited:
Code:
<String>
%((A:ENG1 TORQUE, ft-lbs))%!2.0f!
</String>

This should do away with the decimal.


Also, check the units. The gauge is in PSI (pounds/inch²) while the variable is in (ft/lbs), which is the inverse. Try to switch to "lbf-feet" as a unit.
 
2.0f is not a good idea - I need decimal there. lbf-feet is working but brings not the results I wish. Also with 2.0f.

Anyway, I have these probs with all engine display gauges. In other displays, the units are right I am sure.

So I will have a closer look about animations of needles and airfiles again...

Thank you very much to open my eyes a bit (more).

Thomas
 
Dave, the animations of needles are working great.

For scale I used there

keyframes / max simvar = scale

All is fine there, but for the string of my gauge, something is missing and I don´t have any idea to start fixing this.

The displayed value of the gauge should be not 6.2, better would be 15.0 to 17.0...

Thomas

Actually TORQUE gauge values are expressed in PSI, so (A:ENG TORQUE:n,psi) 10 * is the proper string to display, both with gauge needle and digital string.


Tom
 
Last edited:
Your informations are very helpful and welcome - big thanks - but next days I can do nothing - I will report of progress next weekend.

Thomas
 
Back
Top