Commit 58e12f65 authored by Claes Sjofors's avatar Claes Sjofors

PlcThread Coverage calculation changed from mean value to filtered value

parent 2a66c5c1
......@@ -136,7 +136,7 @@ pwrb_PlcThread_Exec (
o->Sum += o->Last;
o->Mean = o->Sum / o->Count;
o->Coverage = (o->Mean / o->ScanTime) * 100.0;
o->Coverage = 0.99 * o->Coverage + 0.01 * (o->Last / o->ScanTime) * 100.0;
if (o->Last < o->Limit_1_8)
o->Count_1_8++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment