Fixed stirrer beahvior

This commit is contained in:
jens
2020-12-17 17:01:46 +00:00
parent 4c4373d49a
commit 67ec9e6e07
+8 -1
View File
@@ -7,7 +7,7 @@ import serial
class StirrerPololu1376(AStirrer):
def name(self):
return "Pololu1376"
def __init__(self, params):
AStirrer.__init__(self, params['dt'])
self.isMasterOn = 0
@@ -85,3 +85,10 @@ if __name__ == '__main__':
s.process()
time.sleep(1)
print("Continious operation")
s.set_duty_cycle(1.0)
s.set_speed(50)
time.sleep(3.0)
print("Leaving context")