From 403842cd5849acf7db04ade725770758abae793f Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 22:24:36 -0700 Subject: [PATCH] add info messages when controller starts/stops --- Software/python/hwtest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Software/python/hwtest.py b/Software/python/hwtest.py index 1b22511..aa5ae5e 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -95,6 +95,7 @@ def controller(): global servos global control_thread_run + # TODO: make these parameters editable via network interface sample_interval = 0.01 base_speed = 0.1 @@ -104,6 +105,8 @@ def controller(): motor_directions = [-1, 1, 0] steering_sign = 1 + print("INFO: Controller started") + # Precompute this_time = 0 new_c = 0 @@ -144,6 +147,8 @@ def controller(): # TODO: replace sleep statement with something that doesn't depend on execution time of loop time.sleep(sample_interval) + + print("INFO: Controller stopped") control_thread = None