def get_acceleration(axis, index=1):
    if (not isinstance(index, (int, float))):
        return 0
    if (axis == 'x'):
        value = neurons_blocking_read('m_motion_sensor', 'get_acc_x', (INQUIRE_ID, ACC_X_ID), index)
    elif (axis == 'y'):
        value = neurons_blocking_read('m_motion_sensor', 'get_acc_y', (INQUIRE_ID, ACC_Y_ID), index)
    elif (axis == 'z'):
        value = neurons_blocking_read('m_motion_sensor', 'get_acc_z', (INQUIRE_ID, ACC_Z_ID), index)
    else:
        return 0
    if (value != None):
        return (value[0] * ACC_SHIFT)
    else:
        return 0
def get_acceleration(axis, index=1):
    if (not isinstance(index, (int, float))):
        return 0
    if (axis == 'x'):
        value = neurons_blocking_read('m_motion_sensor', 'get_acc_x', (INQUIRE_ID, ACC_X_ID), index)
    elif (axis == 'y'):
        value = neurons_blocking_read('m_motion_sensor', 'get_acc_y', (INQUIRE_ID, ACC_Y_ID), index)
    elif (axis == 'z'):
        value = neurons_blocking_read('m_motion_sensor', 'get_acc_z', (INQUIRE_ID, ACC_Z_ID), index)
    else:
        return 0
    if (value != None):
        return (value[0] * ACC_SHIFT)
    else:
        return 0