From caa2d9c446f5901671d30e52b1aaa4c56ef2f25c Mon Sep 17 00:00:00 2001 From: Raspberry Pi Date: Wed, 20 Nov 2019 01:22:22 -0600 Subject: Rework directory structure. Modify result file printing to match requirements of web server. --- System_Python/test_System.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 System_Python/test_System.py (limited to 'System_Python/test_System.py') diff --git a/System_Python/test_System.py b/System_Python/test_System.py deleted file mode 100644 index 32ff56d..0000000 --- a/System_Python/test_System.py +++ /dev/null @@ -1,21 +0,0 @@ -# This test file implements a super simple control-type function for testing the System library. -# DO NOT TEST ON ASSEMBLED PHYSICAL SYSTEM! It will probably break it. -import time - -from system import System - -# Return a speed based on current encoder angle. -# Convert an angle to speed (180 degrees = max speed) -def control_function(angle): - return (abs(angle) / 180.0) * 100.0 - -# Main program -sys = System() -while 1: - angle, linear = sys.measure() - #print(angle) - speed = control_function(angle) - print(speed) - sys.adjust(speed) - time.sleep(0.05) - \ No newline at end of file -- cgit v1.2.3