def get_gyroscope(axis, index=1):
    if (not isinstance(index, (int, float))):
        return 0
    if (axis == 'x'):
        value = neurons_blocking_read('m_motion_sensor', 'get_gyr_x', (INQUIRE_ID, GYRO_X_ID), index)
    elif (axis == 'y'):
        value = neurons_blocking_read('m_motion_sensor', 'get_gyr_y', (INQUIRE_ID, GYRO_Y_ID), index)
    elif (axis == 'z'):
        value = neurons_blocking_read('m_motion_sensor', 'get_gyr_z', (INQUIRE_ID, GYRO_Z_ID), index)
    else:
        return 0
    if (value != None):
        return value[0]
    else:
        return 0
def get_gyroscope(axis, index=1):
    if (not isinstance(index, (int, float))):
        return 0
    if (axis == 'x'):
        value = neurons_blocking_read('m_motion_sensor', 'get_gyr_x', (INQUIRE_ID, GYRO_X_ID), index)
    elif (axis == 'y'):
        value = neurons_blocking_read('m_motion_sensor', 'get_gyr_y', (INQUIRE_ID, GYRO_Y_ID), index)
    elif (axis == 'z'):
        value = neurons_blocking_read('m_motion_sensor', 'get_gyr_z', (INQUIRE_ID, GYRO_Z_ID), index)
    else:
        return 0
    if (value != None):
        return value[0]
    else:
        return 0