1
0
Fork 0

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:
legoboyvdlp R 2019-08-27 20:47:09 +01:00
parent 4784a929d7
commit fc7319a5da

View file

@ -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;