diff options
author | damic014 <damic014@umn.edu> | 2019-10-13 22:14:47 -0500 |
---|---|---|
committer | damic014 <damic014@umn.edu> | 2019-10-13 22:14:47 -0500 |
commit | 9c54528920a03fe046c50bc582067d8f2514d1c8 (patch) | |
tree | 001e66d5200982387158b3bda93b27d53b2743cb /System_Python/test_Encoder.py | |
parent | Encoder class (diff) | |
download | ee4511w-9c54528920a03fe046c50bc582067d8f2514d1c8.tar ee4511w-9c54528920a03fe046c50bc582067d8f2514d1c8.tar.gz ee4511w-9c54528920a03fe046c50bc582067d8f2514d1c8.tar.bz2 ee4511w-9c54528920a03fe046c50bc582067d8f2514d1c8.tar.lz ee4511w-9c54528920a03fe046c50bc582067d8f2514d1c8.tar.xz ee4511w-9c54528920a03fe046c50bc582067d8f2514d1c8.tar.zst ee4511w-9c54528920a03fe046c50bc582067d8f2514d1c8.zip |
Add System library and system test file. Still need to finalize some implementation details (linear encoder, motor orientation, etc.). Need to compile and test on RPi still.
Convert naming in other libraries to follow Python naming scheme.
Diffstat (limited to '')
-rw-r--r-- | System_Python/test_Encoder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/System_Python/test_Encoder.py b/System_Python/test_Encoder.py index 08804fa..b667cc1 100644 --- a/System_Python/test_Encoder.py +++ b/System_Python/test_Encoder.py @@ -7,8 +7,8 @@ cs_pin = 4 data_pin = 3 e = Encoder(clk_pin, cs_pin, data_pin) -e.setZero() +e.set_zero() while(1): - print(e.readPosition('Degrees')) + print(e.read_position('Degrees')) time.sleep(0.001)
\ No newline at end of file |