Jump to content
Sign in to follow this  
Guest bartels

xml text slowdown

Recommended Posts

Guest

HiAs it is possible to control how fast a needle is moving by using degreesperseconds and so on, is it possible to control how fast a textual display is changing.I.e. a very slow moving analog OAT needle, displayed as text. While the needle may take some time to 'catch up', the text is always instant. Any way to limit this?

Share this post


Link to post
Share on other sites
Guest bartels

I don't know a direct way to do this, but it might be possible to make a kind of "exponential" damping with XML values. I've done this in C gauges, but I haven't implemented it in XML yet.It derives from:Yn=Xn*damp+Yn-1*(1.0-damp)You take the new value (Xn) and multiply it with a factor 0

Share this post


Link to post
Share on other sites
Guest

Thanks. I'll see if I'm able to implement these things. If not, I'll just put it on an analog gauge.Do you happen to have more of these algorithms around?

Share this post


Link to post
Share on other sites
Guest bartels

I t depends on what you need. I studied and worked some time in digital signal processing and numerical computations (as a physicist where I needed that stuff), so I know a some recipies if needed. Teoretically it is for example possible to create a needle that works like a "damped oszillator", by creating a digital filter with approbiate parameters. Unfortunately this depends on the "sampling" frequency of FS which is 18Hz and everytime this gave "too heavy" needles. Interestingly the "Delay" parameter in XML gauges can give just the desired effect of an overshooting and oszillating needle if selected properly.Arne Bartels

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...