From 9c54528920a03fe046c50bc582067d8f2514d1c8 Mon Sep 17 00:00:00 2001 From: damic014 Date: Sun, 13 Oct 2019 22:14:47 -0500 Subject: 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. --- System_Python/test_Encoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'System_Python/test_Encoder.py') 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 -- cgit v1.2.3