Local weather: correct the fade in rate per private discussion with Thorsten, this will in the short term reduce jumps until I figure out changing this per distance; this was originally meant to be over 10 seconds apparently
This commit is contained in:
parent
4784a929d7
commit
fc7319a5da
1 changed files with 1 additions and 2 deletions
|
@ -357,8 +357,7 @@ for (var i = 0; i < wsize; i=i+1) {
|
||||||
# gradually fade in the interpolation weight of newly added points to
|
# gradually fade in the interpolation weight of newly added points to
|
||||||
# avoid sudden jumps
|
# avoid sudden jumps
|
||||||
|
|
||||||
if (w.weight < 1.0) {w.weight = w.weight + 0.02;}
|
if (w.weight < 1.0) {w.weight = w.weight + 0.002;}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sum_wind[1] = sum_wind[1] /sum_norm;
|
sum_wind[1] = sum_wind[1] /sum_norm;
|
||||||
|
|
Loading…
Reference in a new issue