示例#1
0
def move(vac: mirobo.Vacuum, rotation: float, velocity: float, duration: int):
    """Pass raw manual values"""
    return vac.manual_control(rotation, velocity, duration)
示例#2
0
def right(vac: mirobo.Vacuum, degrees: int):
    """Turn to right."""
    click.echo("Turning right")
    return vac.manual_control(-degrees, 0)
示例#3
0
def backward(vac: mirobo.Vacuum, amount:float):
    """Run backwards."""
    click.echo("Moving backwards")
    return vac.manual_control(0, -amount)
示例#4
0
def left(vac: mirobo.Vacuum, degrees: int):
    """Turn to left."""
    click.echo("Turning %s degrees left" % degrees)
    return vac.manual_control(degrees, 0)