aboutsummaryrefslogtreecommitdiffstats
path: root/System/Pendulum/errorTestScript.py
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-02-18 12:41:51 -0600
committerMatt Strapp <matt@mattstrapp.net>2022-02-18 12:41:51 -0600
commit1337de59b712c30c447b2b45de9ec54ecd6d8ea4 (patch)
tree6c0fc73eeee869bd01392a849fc547a2552cb919 /System/Pendulum/errorTestScript.py
parentChange git repo to organization repos (diff)
downloadee4511w-1337de59b712c30c447b2b45de9ec54ecd6d8ea4.tar
ee4511w-1337de59b712c30c447b2b45de9ec54ecd6d8ea4.tar.gz
ee4511w-1337de59b712c30c447b2b45de9ec54ecd6d8ea4.tar.bz2
ee4511w-1337de59b712c30c447b2b45de9ec54ecd6d8ea4.tar.lz
ee4511w-1337de59b712c30c447b2b45de9ec54ecd6d8ea4.tar.xz
ee4511w-1337de59b712c30c447b2b45de9ec54ecd6d8ea4.tar.zst
ee4511w-1337de59b712c30c447b2b45de9ec54ecd6d8ea4.zip
Hopefully get the system able to be packaged
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'System/Pendulum/errorTestScript.py')
-rw-r--r--System/Pendulum/errorTestScript.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/System/Pendulum/errorTestScript.py b/System/Pendulum/errorTestScript.py
new file mode 100644
index 0000000..cb029d5
--- /dev/null
+++ b/System/Pendulum/errorTestScript.py
@@ -0,0 +1,42 @@
+
+import sys
+sys.path.insert(0, '/home/pi/pendulum/System')
+from System.system import System
+import time
+from sys import exit
+#import pandas
+
+
+sys = System(angular_units = 'Radians')
+
+for x in range(0,10:
+ angle, linear = sys.measure()
+ print("Angle: " + str(angle) + ", Linear: " + str(linear))
+ sys.add_results(linear, angle, angle)
+ time.sleep(0.2)
+
+
+exit()
+
+
+
+
+
+
+
+
+#class test():
+# def __init__(self, x, theta):
+# self.x = 0
+# self.theta = 0
+#
+# def getINFO(self, theta):
+# #theta, x = self.System.measure()
+# theta, x = self.sys.measure()
+#
+#while(1):
+# test.getINFO()
+# print("t")
+# #print("theta",test.theta)
+# #print("x",test.x)
+# \ No newline at end of file