From fc7319a5daf2b0b54d063b82ba3ebd0e89dbdcd8 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Tue, 27 Aug 2019 20:47:09 +0100 Subject: [PATCH] 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 --- Nasal/local_weather/local_weather.nas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Nasal/local_weather/local_weather.nas b/Nasal/local_weather/local_weather.nas index 78ef16a17..c38cab420 100644 --- a/Nasal/local_weather/local_weather.nas +++ b/Nasal/local_weather/local_weather.nas @@ -357,8 +357,7 @@ for (var i = 0; i < wsize; i=i+1) { # gradually fade in the interpolation weight of newly added points to # 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;