renamed cleanup to close, this is more common

This commit is contained in:
Olivier R-D
2015-04-10 12:39:19 +02:00
parent 747f07287d
commit 92a7c1812e
11 changed files with 25 additions and 62 deletions

View File

@@ -114,7 +114,7 @@ class Service(object):
time.sleep(0.12)#URX secondday port accepts command at 10Hz, no need to go faster
def cleanup(self):
def close(self):
if self.joystick:
self.joystick.quit()
@@ -135,5 +135,5 @@ if __name__ == "__main__":
try:
service.loop()
finally:
robot.cleanup()
service.cleanup()
robot.close()
service.close()