aboutsummaryrefslogtreecommitdiffstats
path: root/gui/templates/6_iir_test.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-10-30 10:12:07 -0400
committerClyne Sullivan <clyne@bitgloo.com>2021-10-30 10:12:07 -0400
commit6f1c5203f14f82b6a10c9756ef1dc39bc8631ec0 (patch)
tree61dac19762297fd9ae1111ba47720b61eff02797 /gui/templates/6_iir_test.cpp
parente4a8d6eefc267c3a38d5237205421cbbe6eaebe8 (diff)
remove gui (now in stmdspgui repo)
Diffstat (limited to 'gui/templates/6_iir_test.cpp')
-rw-r--r--gui/templates/6_iir_test.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/gui/templates/6_iir_test.cpp b/gui/templates/6_iir_test.cpp
deleted file mode 100644
index cdb4ab3..0000000
--- a/gui/templates/6_iir_test.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-adcsample_t *process_data(adcsample_t *samples, unsigned int size)
-{
- constexpr float alpha = 0.7;
-
- static adcsample_t prev = 2048;
-
- samples[0] = (1 - alpha) * samples[0] + alpha * prev;
- for (unsigned int i = 1; i < size; i++)
- samples[i] = (1 - alpha) * samples[i] + alpha * samples[i - 1];
- prev = samples[size - 1];
-
- return samples;
-}