def move_forward(self, distance): error = validators.validate_move(distance) if error: return error return self._send_command('forward %s' % distance)
def move_up(self, distance): error = validators.validate_move(distance) if error: return error return self._send_command('up %s' % distance)
def move_backward(self, distance): error = validators.validate_move(distance) print(error) if error: return error return self._send_command('back %s' % distance)