add stop option

This commit is contained in:
HappyZ 2017-12-19 15:32:49 -06:00 committed by GitHub
parent 952c776dae
commit 45991bf050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,9 @@ class NexusRobot:
self.ser.write("rl%d,%d;" % (speed, angle))
self._wait()
def stop(self, speed=0):
self.ser.write("s%d;" % (speed))
self._wait()