aboutsummaryrefslogtreecommitdiffstats
path: root/System_Python/test_Motor.py
diff options
context:
space:
mode:
authorRaspberry Pi <pi@umn.edu>2019-10-15 17:10:04 -0500
committerRaspberry Pi <pi@umn.edu>2019-10-15 17:10:04 -0500
commit066662d02c3185331af137a14cb1caab3b3af356 (patch)
treea428e1c6e110a915dc772b23a83d05d34ff5e87f /System_Python/test_Motor.py
parentAdd a linear encoder class for abstracting the angular-to-linear encoding, wh... (diff)
downloadee4511w-066662d02c3185331af137a14cb1caab3b3af356.tar
ee4511w-066662d02c3185331af137a14cb1caab3b3af356.tar.gz
ee4511w-066662d02c3185331af137a14cb1caab3b3af356.tar.bz2
ee4511w-066662d02c3185331af137a14cb1caab3b3af356.tar.lz
ee4511w-066662d02c3185331af137a14cb1caab3b3af356.tar.xz
ee4511w-066662d02c3185331af137a14cb1caab3b3af356.tar.zst
ee4511w-066662d02c3185331af137a14cb1caab3b3af356.zip
Updated encoder for proper zero setting and offset behavior. Tested system library and successfully got the encoder position controlling the motor speed.
Diffstat (limited to 'System_Python/test_Motor.py')
-rw-r--r--System_Python/test_Motor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/System_Python/test_Motor.py b/System_Python/test_Motor.py
index 600f209..99db520 100644
--- a/System_Python/test_Motor.py
+++ b/System_Python/test_Motor.py
@@ -11,7 +11,7 @@ m = Motor(speed_pin, forward_pin, reverse_pin)
dir = 'ascending'
speed = 0.0
while 1:
- m.Move(speed)
+ m.move(speed)
if speed >= 100.0:
dir = 'descending'
elif speed <= -100.0: