aboutsummaryrefslogtreecommitdiffstats
path: root/System/Uploads
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-02-18 12:00:59 -0600
committerMatt Strapp <matt@mattstrapp.net>2022-02-18 12:00:59 -0600
commit7092ba104ae90eea21beb21c35900e1ccbfaf957 (patch)
tree90a5c336376020b18766b59b391c03b9e6144764 /System/Uploads
parentCreate codeql-analysis.yml (diff)
downloadee4511w-7092ba104ae90eea21beb21c35900e1ccbfaf957.tar
ee4511w-7092ba104ae90eea21beb21c35900e1ccbfaf957.tar.gz
ee4511w-7092ba104ae90eea21beb21c35900e1ccbfaf957.tar.bz2
ee4511w-7092ba104ae90eea21beb21c35900e1ccbfaf957.tar.lz
ee4511w-7092ba104ae90eea21beb21c35900e1ccbfaf957.tar.xz
ee4511w-7092ba104ae90eea21beb21c35900e1ccbfaf957.tar.zst
ee4511w-7092ba104ae90eea21beb21c35900e1ccbfaf957.zip
Change git repo to organization repos
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'System/Uploads')
-rw-r--r--System/Uploads/donovanTestScript.py81
-rw-r--r--System/Uploads/upload.py81
2 files changed, 0 insertions, 162 deletions
diff --git a/System/Uploads/donovanTestScript.py b/System/Uploads/donovanTestScript.py
deleted file mode 100644
index 4a51f08..0000000
--- a/System/Uploads/donovanTestScript.py
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
-
-import sys
-sys.path.insert(0, '/home/pi/pendulum/System')
-from System.system import System
-import time
-from sys import exit
-#import pandas
-
-
-###
-sys.path.insert(0, '/home/pi/pendulum/System')
-from encoder import Encoder
-import RPi.GPIO as GPIO
-
-
-clk_pin = 3
-cs_pin = 23
-data_pin = 2
-
-e = Encoder(clk_pin, cs_pin, data_pin)
-e.set_zero()
-###
-
-
-
-
-sys = System(angular_units = 'Radians')
-
-for x in range(4,20):
- linear = 0
-
- print("beginning of test with speed " + str(x))
-
- while linear > -7:
- sys.adjust(-5)
- angle, linear = sys.measure()
- print("Angle: " + str(angle) + ", Linear: " + str(linear))
- time.sleep(0.1)
- sys.adjust(0)
- time.sleep(3)
- sys.add_log("this is a test with speed " + str(x))
-
- while linear < 7:
- sys.adjust(x)
- angle, linear = sys.measure()
- print("Angle: " + str(angle) + ", Linear: " + str(linear))
- sys.add_results(e.read_position('Degrees'), linear, x)
- time.sleep(0.1)
- sys.adjust(0)
- print("end of test with speed " + str(x))
- time.sleep(3)
-
-
-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)
-#
diff --git a/System/Uploads/upload.py b/System/Uploads/upload.py
deleted file mode 100644
index 4a51f08..0000000
--- a/System/Uploads/upload.py
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
-
-import sys
-sys.path.insert(0, '/home/pi/pendulum/System')
-from System.system import System
-import time
-from sys import exit
-#import pandas
-
-
-###
-sys.path.insert(0, '/home/pi/pendulum/System')
-from encoder import Encoder
-import RPi.GPIO as GPIO
-
-
-clk_pin = 3
-cs_pin = 23
-data_pin = 2
-
-e = Encoder(clk_pin, cs_pin, data_pin)
-e.set_zero()
-###
-
-
-
-
-sys = System(angular_units = 'Radians')
-
-for x in range(4,20):
- linear = 0
-
- print("beginning of test with speed " + str(x))
-
- while linear > -7:
- sys.adjust(-5)
- angle, linear = sys.measure()
- print("Angle: " + str(angle) + ", Linear: " + str(linear))
- time.sleep(0.1)
- sys.adjust(0)
- time.sleep(3)
- sys.add_log("this is a test with speed " + str(x))
-
- while linear < 7:
- sys.adjust(x)
- angle, linear = sys.measure()
- print("Angle: " + str(angle) + ", Linear: " + str(linear))
- sys.add_results(e.read_position('Degrees'), linear, x)
- time.sleep(0.1)
- sys.adjust(0)
- print("end of test with speed " + str(x))
- time.sleep(3)
-
-
-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)
-#