Thingy API for raw data: https://github.com/specknet/pdiotapp/blob/142497c9ab9ebb4ef62e2edbaf667d52cdee2097/app/src/main/java/com/specknet/pdiotapp/utils/Utils.java
public static float[] decodeThingyPacket(byte[] values) {
float accel_x = (float) (getIntValue(values, 0)) / (1 << 10);
float accel_y = (float) (getIntValue(values, 2)) / (1 << 10);
float accel_z = (float) (getIntValue(values, 4)) / (1 << 10);
float gyro_x = (float) (getIntValue(values, 6)) / (1 << 5);
float gyro_y = (float) (getIntValue(values, 8)) / (1 << 5);
float gyro_z = (float) (getIntValue(values, 10)) / (1 << 5);
float mag_x = (float) (getIntValue(values, 12)) / (1 << 4);
float mag_y = (float) (getIntValue(values, 14)) / (1 << 4);
float mag_z = (float) (getIntValue(values, 16)) / (1 << 4);
return new float[]{accel_x, accel_y, accel_z, gyro_x, gyro_y, gyro_z, mag_x, mag_y, mag_z};
}