Moderators: daxtojeiro, muythaibxr, jsmcortina
I'm not setup to compile code, but I can't wait to try this when/if it gets encorporated into a beta/release.
muythaibxr wrote:I've done the minimum change code for mapDOT and tpsDOT in ms3, y8s reports that they work pretty well, and he's been able to dramatically increase his lag factors and get better response. I'm not convinced the extra time factors are needed for that reason. I'll probably give these changes a shot in my own car sometime in the near future.
Ken
robs wrote:Been a while since I posted anything code/design related, the last being the epic on "noisy" RPM values. Like in that thread, I am running the risk of being told that I'm looking at this stuff too closely and, once again, I'm going to be saying that it's not me but the MS code that's looking too closely.
I'm sure I'm not the only one here to look at the TP values at idle, fluctuating around between 0 and 1. Like this:
and compare it with the corresponding tpsDOT values which seem very volatile for such small movements. Like this:
JasonC SBB wrote:...One type of filtering that works very well for the type of noise in the first post is a moving hysteretic window...

gslender wrote:Are you still just running with the patch you posted a while back or has your code evolved since then?
#define TPS_EPS 29 /* 2.9% TPS variation */
#define TPS_PERSIST 480 /* 0.06 second memory */
JasonC SBB wrote:One type of filtering that works very well for the type of noise in the first post is a moving hysteretic window.
robs wrote:JasonC SBB wrote:One type of filtering that works very well for the type of noise in the first post is a moving hysteretic window.
This is interesting, but incomplete, I think. The "window" must decay away after some time. As you described it, the window would end up 0:100.
JasonC SBB wrote:robs wrote:Been a while since I posted anything code/design related, the last being the epic on "noisy" RPM values. Like in that thread, I am running the risk of being told that I'm looking at this stuff too closely and, once again, I'm going to be saying that it's not me but the MS code that's looking too closely.
I'm sure I'm not the only one here to look at the TP values at idle, fluctuating around between 0 and 1. Like this:
and compare it with the corresponding tpsDOT values which seem very volatile for such small movements. Like this:
The best filtering for a given signal depends on the characteristics of the signal and the noise.
One type of filtering that works very well for the type of noise in the first post is a moving hysteretic window.
The window has a certain "width" and it gets "pushed" up or down by the data. To push up, it has to exceed the upper part of the window. To push down, it has to be lower than the lower part of the window. The output is the location of the window. This type of filtering works very well for coolant and air temps too.
For a window width of 2 it will go like this. Input data is a slow rise with noise on it
in out
10 10
11 11
10 11
12 12
10 12
9 11
12 12
13 13
11 13
14 14
15 15
13 15
and so on
JasonC SBB wrote:You may have misunderstood. The width of the window stays constant...
Return to MS2/Extra Development
Users browsing this forum: No registered users and 1 guest