Add documentation for Motor, Robot and RyanteckRobot

This commit is contained in:
Ben Nuttall
2015-10-02 18:08:59 +01:00
parent dc34cf3ccf
commit 3a4d3d4deb
4 changed files with 67 additions and 18 deletions

View File

@@ -256,14 +256,14 @@ class Motor(object):
def forward(self):
"""
Turn the motor on, forwards
Drive the motor forwards
"""
self._forward.on()
self._backward.off()
def backward(self):
"""
Turn the motor on, backwards
Drive the motor backwards
"""
self._backward.on()
self._forward.off()