diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-02-18 12:42:14 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-02-18 12:42:14 -0600 |
commit | 827e67dbd593d10e74336e5f699e29ddac80356e (patch) | |
tree | c22d868b2a443fc652f9bc9e887938ac176c018c /System/pendulum/errorTestScript.py | |
parent | Hopefully get the system able to be packaged (diff) | |
download | ee4511w-827e67dbd593d10e74336e5f699e29ddac80356e.tar ee4511w-827e67dbd593d10e74336e5f699e29ddac80356e.tar.gz ee4511w-827e67dbd593d10e74336e5f699e29ddac80356e.tar.bz2 ee4511w-827e67dbd593d10e74336e5f699e29ddac80356e.tar.lz ee4511w-827e67dbd593d10e74336e5f699e29ddac80356e.tar.xz ee4511w-827e67dbd593d10e74336e5f699e29ddac80356e.tar.zst ee4511w-827e67dbd593d10e74336e5f699e29ddac80356e.zip |
Change package name for consistency
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'System/pendulum/errorTestScript.py')
-rw-r--r-- | System/pendulum/errorTestScript.py | 42 |
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 |