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

Refresh time rate

Messages
126
Country
italy
I created the gauges for engines like the ones in the red box. I would like the numerical values to have an update not instantaneous but of a few tenths of a second as in the following video, minute 0:54


For example my XML code for the first decimal of the EPR is: (L:EPR E1, enum) 100000 + 10 * 10 % int
for the second decimal is: (L:EPR E1, enum) 100000 + 100 * 10 %


In this way the updating of the value is instantaneous, while I would like it with a defined time rate, is it possible?
 

Attachments

  • gauge.jpg
    gauge.jpg
    437 KB · Views: 244
You could add a delay statement?

<Delay DegreesPerSecond="80"/>
 
<Lag>30</Lag> to slow down rotation of a drum.
For example, here is a script for the tenths digit of a DME drum display:
XML:
  <PartInfo>
    <Name>B737_drum_DME_tenths</Name>
    <AnimLength>9</AnimLength>
    <Animation>
      <Parameter>
        <Code>
          (A:NAV DME:1,nautical miles) 10 * 999.9 min 0 max 10 % 1 / flr
        </Code>
        <Lag>30</Lag>
      </Parameter>
    </Animation>
  </PartInfo>
 
There's no pause. I built a TriStar some years ago and got both my RB-211 figures and videos from an instructor at BA. Admittedly, he instructed on the B747 but the info came from the B747-100/200 simulator which used the same gauges as the TriStar. What you are seeing is a sudden change in EGT and N3 which appears to run a load of figures followed by a pause. However, the drums do not roll smoothly. They snap from figure to figure. To mimic this you need to use an integer display and not a double (as I think Bill is proposing); this is what you seem to be proposing in your original post.
 
Thank you all.
@DragonflightDesign The gauges are the same as the 747, true, but in it 747 are flowing, while in the tristar they update in jerks according to the speed of spoll up.
The @tgibson advice works, but I would like to snap the numbers in integers and not run the band of the gauge per pixel. Is it possible to scroll by pixel intervals?
 
In practice I would like to go down from EPR 1.22 to 1.23 when EPR = 1.2299999. Or from EPR 1.19 to 1.20 when EPR = 1.1999999. I hope I explained myself
 
For retrieving the "ones" (L:EPR E1, enum) 100 * d 1% r flr 1000% d 100 / flr r 100% 99 == if {+}

For retrieving the ".1s" (L:EPR E1, enum) 100 * d 1% r flr 100% d 10 / flr r 10% 9 == if {+}

For retrieving the ".01s" (L:EPR E1, enum) 1000 * d 1% r flr 100% d 10 / flr r 10% 9 == if {+}


I tried this but they return me as EPR 0.00 Is there any algebraic error?
 
it C++ math
first make it value individual value: unit (u), tens(t), hundreds(h). each value at range 0 - 9 (using floor and loop)
fm (loop 100):
Code:
        u = asiu;
        t = asiu > 9 ? asiu - (9 - asit) : asit;
        h = asitfm > 9.9 ? (asiu - (9 - asit)) - (9 - asih) : asih;
 
Back
Top