From 36e538cfbd81a9c5d139303e540404e7a057958c Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 21:55:53 -0700 Subject: [PATCH] fix name mismatch --- 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 678cefb..312d17d 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -87,7 +87,7 @@ def controller(): global brightness global time_data global servos - global controller_thread_run + global control_thread_run # TODO: make these parameters editable via network interface sample_interval = 0.01 @@ -103,7 +103,7 @@ def controller(): new_c = 0 motor_speed = np.array(motor_directions) * base_speed - while controller_thread_run: + while control_thread_run: # Read error brightness = np.clip([get_normalized_reflectivity(c) for c in range(8)], 0, 1) line_position = np.sum((1 - brightness) * (np.arange(8) - 3.5)) / np.sum(1-brightness) / 3.5