def is_upright(index=1):
    acc_y = get_acceleration('y', index)
    if ((acc_y > FACE_STATUC_THRESHOLD) or (acc_y < (- FACE_STATUC_THRESHOLD))):
        return True
    else:
        return False
def is_upright(index=1):
    acc_y = get_acceleration('y', index)
    if ((acc_y > FACE_STATUC_THRESHOLD) or (acc_y < (- FACE_STATUC_THRESHOLD))):
        return True
    else:
        return False