From 609656244544d5a545cefc996dfc5e8c588c2fae Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 19:49:37 -0700 Subject: [PATCH] fix appending of data --- Software/python/hwtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/python/hwtest.py b/Software/python/hwtest.py index 03d0ab4..2fa9032 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -115,8 +115,8 @@ def control_thread(): line_position = np.sum((1 - brightness) * (np.arange(8) - 3.5))/np.sum(1-brightness) # TODO: implement control stuff and drive outputs - t = np.concatenate((t, this_time)) - error = np.concatenate((error, line_position)) + t = np.append(t, this_time) + error = np.append(error, line_position) if DEBUG: for b in brightness: