FILTER_MAV bug

Begonnen von PhilipInc, 24. September 2018, 20:20:17

Vorheriges Thema - Nächstes Thema

0 Mitglieder und 1 Gast betrachten dieses Thema.

PhilipInc

Hello,

FILTER_MAV function works wrong if the values goes down.

ELSE
   tmp := UINT_TO_INT(N);
   i := INC1(i, tmp);
   Y := Y + (X - buffer) / N;
   buffer := X;
END_IF;

when buffer is bigger than X their difference going bellow 0 and become very large.

Yamonaru

We are happy to provide these useful information to everyone.

hanoisss

This review is the best.