Computer/DatabaseAlterations/generateFlipImages.py
def flipCommand(cmd):
    '''accepts Commands.[cmd].value only and returns opposite'''
    if(cmd == Commands.RIGHT.value):
        return Commands.LEFT.value
    elif(cmd == Commands.LEFT.value):
        return Commands.RIGHT.value;
    elif(cmd==Commands.FORWARD.value or cmd==Commands.BACK.value or cmd==Commands.STOP_ALL_MOTORS.value):
        return cmd
    else:
        return Commands.NO_CMD.value;
accepts Commands.[cmd].value only and returns opposite
accepts Commands.[cmd].value only and returns opposite
accepts Commands . [ cmd ] . value only and returns opposite
def flipCommand(cmd):
    if(cmd == Commands.RIGHT.value):
        return Commands.LEFT.value
    elif(cmd == Commands.LEFT.value):
        return Commands.RIGHT.value;
    elif(cmd==Commands.FORWARD.value or cmd==Commands.BACK.value or cmd==Commands.STOP_ALL_MOTORS.value):
        return cmd
    else:
        return Commands.NO_CMD.value;
def flipCommand ( cmd ) : if ( cmd == Commands . RIGHT . value ) : return Commands . LEFT . value elif ( cmd == Commands . LEFT . value ) : return Commands . RIGHT . value ; elif ( cmd == Commands . FORWARD . value or cmd == Commands . BACK . value or cmd == Commands . STOP_ALL_MOTORS . value ) : return cmd else : return Commands . NO_CMD . value ;
accepts Commands.
accepts Commands .
'''accepts Commands.[cmd].value only and returns opposite'''
cmd