SimHub provides a default Gear shift effect,
but one arguably would prefer an effect which varies with smoothness of shifts.
After some floundering, shift roughness may best correlates with abrupt changes in speed or acceleration.
Of course, acceleration is literally changes in speed; changes in acceleration are called jerk.
Rough shift experiments were first discussed here:
further content will continue here.
Attached is a profile with experimental effects.
As usual, it wants
and copying into SimHub's profile directory, which is usually
Here is an alternative IMO worth considering.
but one arguably would prefer an effect which varies with smoothness of shifts.
After some floundering, shift roughness may best correlates with abrupt changes in speed or acceleration.
Of course, acceleration is literally changes in speed; changes in acceleration are called jerk.
Rough shift experiments were first discussed here:
.. but rather than more clutter in @RCHeliguy's thread,Rough shift effect
I apologize for the delay in providing this, and it turns out that
changes in car speed are more indicative of clumsy shifts.
Here is a working formula:
JavaScript:var s = $prop('SpeedKmh'); var g = $prop('Gear'); const tc = 3; // IIR smoothing factor const noise = 0.01 // non-linear filter threshold // initialize IIR filter history if(null==root["lows"]) { root["lows"] = s; root["og"] = g; } // IIR low-pass filter var lows = root["lows"]; // lowpass IIR output var ds = s - lows; if (g == root["og"]) ds = 0; // only interested in speed changes during shifts root["og"] = g; lows += (s - lows) / tc; // low-pass filtered speed root["lows"] = lows; return 10 * Math.abs(ds);
The upper graph plots gear changes, and the lower graph is shift abruptness from the above JavaScript:
View attachment 502287
further content will continue here.
Attached is a profile with experimental effects.
As usual, it wants
.txt
removed from its nameand copying into SimHub's profile directory, which is usually
Documents\SimHub
.Here is an alternative IMO worth considering.
Attachments
Last edited: