initialize sufficient zeros to satisfy controller at start

This commit is contained in:
Brendan Haines 2020-03-02 21:15:06 -07:00
parent f05bff700f
commit 0f134566c2

View File

@ -119,6 +119,7 @@ def control_thread():
base_speed = 0.1 base_speed = 0.1
fir_taps = [0, 0, 0] fir_taps = [0, 0, 0]
iir_taps = [0, 0] iir_taps = [0, 0]
time_data = np.zeros((max(len(fir_taps), len(iir_taps)), time_data.shape[1]))
while True: while True:
# TODO: replace sleep statement with something that doesn't depend on execution time of loop # TODO: replace sleep statement with something that doesn't depend on execution time of loop