From 6e8c893503cac801d930c1785826463204f115e0 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Thu, 14 Apr 2022 13:39:18 -0500 Subject: Add new changes from local testing Signed-off-by: Matt Strapp --- System/Tests/test_angular.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 System/Tests/test_angular.py (limited to 'System/Tests') diff --git a/System/Tests/test_angular.py b/System/Tests/test_angular.py new file mode 100644 index 0000000..c46d957 --- /dev/null +++ b/System/Tests/test_angular.py @@ -0,0 +1,19 @@ +from pendulum import System +from time import sleep + +# Main program +#print("before system()call") +sys = System() +#print("after system() call") +sys.initialize() +#print("after sys.inintalize called") + +ang,lin = sys.measure() +print("Starting position before moving: " + str(lin)) +sys.adjust(0) +ang,lin = sys.measure() +sleep(1.0) +while lin < 10: + ang,lin = sys.measure() + sleep(0.01) +sys.return_home() -- cgit v1.2.3