From f8043a3e236141601056acc82f64b477ea8a3004 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Thu, 17 Feb 2022 16:02:08 -0600 Subject: Fix typos and Python 3.9 problems Signed-off-by: Matt Strapp --- System/system.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'System') diff --git a/System/system.py b/System/system.py index 826aa9b..4db0755 100644 --- a/System/system.py +++ b/System/system.py @@ -156,7 +156,7 @@ class System: # Re-enable the limit switch interrupts GPIO.add_event_detect(limit_negative_pin, GPIO.FALLING, callback=self.negative_limit_callback, bouncetime=300) GPIO.add_event_detect(limit_positive_pin, GPIO.FALLING, callback=self.positive_limit_callback, bouncetime=300) - print("Finsihed the initaialize func") + print("Finished the initialize func") # END initialize # Return home, cleanup IO. This should be called when exiting the program @@ -164,7 +164,7 @@ class System: self.return_home() self.motor.brake() self.deinit = True - if self.encoder_thread.isAlive(): + if self.encoder_thread.is_alive(): self.encoder_thread.join() sleep(1) GPIO.cleanup() @@ -368,6 +368,6 @@ class Linear_Encoder: self.last_position = position # compute the position based on the system parameters # linear position = (2pi*r)(n) + (2pi*r)(position/1024) = (2pi*r)(n + position/1024) = (pi*d)(n + position/1024) - print("sled positin in inches") + print("sled position in inches") print(self.PROPORTION*(self.rotations + position/1024.)) return((self.PROPORTION)*(self.rotations + position/1024.)) -- cgit v1.2.3