aboutsummaryrefslogtreecommitdiffstats
path: root/System/Tests/test_angular.py
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-04-14 13:39:18 -0500
committerMatt Strapp <matt@mattstrapp.net>2022-04-14 14:17:52 -0500
commit6e8c893503cac801d930c1785826463204f115e0 (patch)
tree6b1f13997739d8816511063048f7c0772e7e41fe /System/Tests/test_angular.py
parentupdate web module (diff)
downloadee4511w-6e8c893503cac801d930c1785826463204f115e0.tar
ee4511w-6e8c893503cac801d930c1785826463204f115e0.tar.gz
ee4511w-6e8c893503cac801d930c1785826463204f115e0.tar.bz2
ee4511w-6e8c893503cac801d930c1785826463204f115e0.tar.lz
ee4511w-6e8c893503cac801d930c1785826463204f115e0.tar.xz
ee4511w-6e8c893503cac801d930c1785826463204f115e0.tar.zst
ee4511w-6e8c893503cac801d930c1785826463204f115e0.zip
Add new changes from local testing
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
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()