From 0f134566c2d6a089e5cc034a7335b8612f4ec3c4 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 21:15:06 -0700 Subject: [PATCH] initialize sufficient zeros to satisfy controller at start --- Software/python/hwtest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Software/python/hwtest.py b/Software/python/hwtest.py index c2ae5ef..27415c7 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -119,6 +119,7 @@ def control_thread(): base_speed = 0.1 fir_taps = [0, 0, 0] iir_taps = [0, 0] + time_data = np.zeros((max(len(fir_taps), len(iir_taps)), time_data.shape[1])) while True: # TODO: replace sleep statement with something that doesn't depend on execution time of loop