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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...