Esempio n. 1
0
def backward_cmd(connection):
    answer = command(connection, b"s\n", 0)

    if answer is None:
        answer = SUCCESS

    return str(answer)
Esempio n. 2
0
def right_cmd(connection):
    answer = command(connection, b"d\n", 0)

    if answer is None:
        answer = SUCCESS

    return str(answer)
Esempio n. 3
0
def stop_cmd(connection):
    answer = command(connection, b"0\n", 0)

    if answer is None:
        answer = SUCCESS
            
    return str(answer)
    
Esempio n. 4
0
def mode_man_cmd(connection):
    """
    TODO
    """
    answer = command(connection, b'man\n', None)

    if answer == b'':
        answer = TIMEOUT

    return str(answer)
def mode_default_cmd(connection):
    """
    TODO
    """
    answer = command(connection, b'stop\n', None)

    if answer == b'':
        answer = TIMEOUT

    return str(answer)