- stirrer: removed status logs
This commit is contained in:
@@ -41,11 +41,8 @@ class StirrerPololu1376(AStirrer):
|
|||||||
print("Set speed to {} %".format(speed))
|
print("Set speed to {} %".format(speed))
|
||||||
|
|
||||||
def _on_process(self):
|
def _on_process(self):
|
||||||
#s print("STATUS :")
|
|
||||||
# self.drv.print_vars()
|
|
||||||
status = self.drv.get_variable(Varid.STATUS)
|
status = self.drv.get_variable(Varid.STATUS)
|
||||||
limit_status = self.drv.get_variable(Varid.STATUS_LIMIT_STATUS)
|
limit_status = self.drv.get_variable(Varid.STATUS_LIMIT_STATUS)
|
||||||
print("Status={:02X}".format(status))
|
|
||||||
if status & 0x01 == 0x01:
|
if status & 0x01 == 0x01:
|
||||||
if limit_status & 0x01 == 0x01:
|
if limit_status & 0x01 == 0x01:
|
||||||
print("Recover after motor error!")
|
print("Recover after motor error!")
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class StirrerSim(AStirrer):
|
|||||||
print("Set speed to {} %".format(speed))
|
print("Set speed to {} %".format(speed))
|
||||||
|
|
||||||
def _on_process(self):
|
def _on_process(self):
|
||||||
print("STATUS = OK!")
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user