Commit 2c419a17 authored by Claes Sjofors's avatar Claes Sjofors

Bus IO bugfix in Ai filter (refs #111)

parent 07169af5
...@@ -186,7 +186,7 @@ static void ConvertAi ( io_tCtx ctx, ...@@ -186,7 +186,7 @@ static void ConvertAi ( io_tCtx ctx,
} }
if (sig_ai->FilterType == 1 && sig_ai->FilterAttribute[0] > 0 && sig_ai->FilterAttribute[0] > ctx->ScanTime) { if (sig_ai->FilterType == 1 && sig_ai->FilterAttribute[0] > 0 && sig_ai->FilterAttribute[0] > ctx->ScanTime) {
actvalue = *(sig_ai->ActualValue) + ctx->ScanTime / sig_ai->FilterAttribute[0] * (actvalue - *(sig_ai->ActualValue)); actvalue = *(pwr_tFloat32 *) chanp->vbp + ctx->ScanTime / sig_ai->FilterAttribute[0] * (actvalue - *(pwr_tFloat32 *) chanp->vbp);
} }
sig_ai->SigValue = sigvalue; sig_ai->SigValue = sigvalue;
......
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