Speed-up fix; now included in /sim/time/delta-sec
This commit is contained in:
parent
2e8369434c
commit
8164811d9f
1 changed files with 6 additions and 7 deletions
|
@ -270,7 +270,7 @@ var lowpass = {
|
|||
me.value = v;
|
||||
},
|
||||
_filter_: func(v) {
|
||||
var dt = getprop("/sim/time/delta-sec")*getprop("/sim/speed-up");
|
||||
var dt = getprop("/sim/time/delta-sec");
|
||||
var c = dt / (me.coeff + dt);
|
||||
me.value = v * c + me.value * (1 - c);
|
||||
},
|
||||
|
@ -1209,4 +1209,3 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
data._loop_ = func nil;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue