May 22, 200224 yr 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?
May 22, 200224 yr 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
May 25, 200224 yr 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?
May 25, 200224 yr 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
Create an account or sign in to comment