aboutsummaryrefslogtreecommitdiffstats
path: root/System_Python/test_Motor.py
diff options
context:
space:
mode:
authorRaspberry Pi <raspberrypi@umn.edu>2019-11-20 01:22:22 -0600
committerRaspberry Pi <raspberrypi@umn.edu>2019-11-20 01:22:22 -0600
commitcaa2d9c446f5901671d30e52b1aaa4c56ef2f25c (patch)
treee541778f97d291c6bc4f160b4ec8cd9d24d538fb /System_Python/test_Motor.py
parentFixed encoder zeroing. Other minor changes, still trying to get the swingup c... (diff)
downloadee4511w-caa2d9c446f5901671d30e52b1aaa4c56ef2f25c.tar
ee4511w-caa2d9c446f5901671d30e52b1aaa4c56ef2f25c.tar.gz
ee4511w-caa2d9c446f5901671d30e52b1aaa4c56ef2f25c.tar.bz2
ee4511w-caa2d9c446f5901671d30e52b1aaa4c56ef2f25c.tar.lz
ee4511w-caa2d9c446f5901671d30e52b1aaa4c56ef2f25c.tar.xz
ee4511w-caa2d9c446f5901671d30e52b1aaa4c56ef2f25c.tar.zst
ee4511w-caa2d9c446f5901671d30e52b1aaa4c56ef2f25c.zip
Rework directory structure. Modify result file printing to match requirements of web server.
Diffstat (limited to 'System_Python/test_Motor.py')
-rw-r--r--System_Python/test_Motor.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/System_Python/test_Motor.py b/System_Python/test_Motor.py
deleted file mode 100644
index 80cff1e..0000000
--- a/System_Python/test_Motor.py
+++ /dev/null
@@ -1,23 +0,0 @@
-from motor import Motor
-import time
-
-# Decide which pins to hook up to on the Pi before running
-speed_pin = 17
-forward_pin = 27
-reverse_pin = 22
-
-m = Motor(speed_pin, forward_pin, reverse_pin)
-
-dir = 'ascending'
-speed = 0.0
-while 1:
- if speed >= 15.0:
- dir = 'descending'
- elif speed <= -15.0:
- dir = 'ascending'
- if dir == 'ascending':
- speed = speed + 2.0
- else:
- speed = speed - 2.0
- m.move(speed)
- time.sleep(0.1) \ No newline at end of file