fix appending of data

This commit is contained in:
Brendan Haines 2020-03-02 19:49:37 -07:00
parent 8924319a01
commit 6096562445

View File

@ -115,8 +115,8 @@ def control_thread():
line_position = np.sum((1 - brightness) * (np.arange(8) - 3.5))/np.sum(1-brightness) line_position = np.sum((1 - brightness) * (np.arange(8) - 3.5))/np.sum(1-brightness)
# TODO: implement control stuff and drive outputs # TODO: implement control stuff and drive outputs
t = np.concatenate((t, this_time)) t = np.append(t, this_time)
error = np.concatenate((error, line_position)) error = np.append(error, line_position)
if DEBUG: if DEBUG:
for b in brightness: for b in brightness: