aboutsummaryrefslogtreecommitdiffstats
path: root/System/Tests/test_angular.py
diff options
context:
space:
mode:
Diffstat (limited to 'System/Tests/test_angular.py')
-rw-r--r--System/Tests/test_angular.py19
1 files changed, 19 insertions, 0 deletions
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()