Current ch-11 state

This commit is contained in:
Carol Staple
2022-09-02 18:48:10 +01:00
parent b0db885480
commit d7ba881234
17 changed files with 846 additions and 61 deletions
+8
View File
@@ -0,0 +1,8 @@
class LPF:
"""Low pass filter."""
def __init__(self, alpha):
self.alpha = alpha
self.last = 0
def update(self, value):
self.last = self.alpha * value + (1 - self.alpha) * self.last
return self.last