Sign in to follow this  
Guest bartels

xml text slowdown

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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

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

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