oscat.lib > oscat.lib fuer CoDeSys 3

FILTER_MAV bug

(1/1)

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.

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln