handle zeros at infinity

This commit is contained in:
Brendan Haines 2020-04-08 15:07:54 -06:00
parent 4cb989e722
commit 29e75a6b5f

View File

@ -107,8 +107,9 @@ def controller():
else:
sample_interval = D.dt
base_speed = 0.1
fir_taps = np.append(D.num, 0)
iir_taps = np.append(D.num[1:], 0)
fir_taps = np.append(D.num, 0)
fir_taps = np.concatenate([np.zeros(len(iir_taps)-len(fir_taps) + 1), fir_taps])
# fir_taps = [1, 0, 0]
# iir_taps = [0, 0]