Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
COMP(ac);
HAL_PIN(in) = 0.0;
HAL_PIN(ac) = 0.01;
HAL_PIN(out) = 0.0;
MEM(float avg) = 0.0;
RT_FILTER(
float i = PIN(in);
float a = PIN(ac);
// avg
avg = i * a + avg * (1 - a);
PIN(out) = i - avg;
);
ENDCOMP;
d37071f35This file is pinned to the selected release. Download the original to open it in your design tool.