In update_burst function,
// X_GYRO_OUT
gyro[0] = big_endian_to_short(&buff[5]) * M_PI / 180 / 10.0;
// Y_GYRO_OUT
gyro[1] = big_endian_to_short(&buff[7]) * M_PI / 180 / 10.0;
// Z_GYRO_OUT
gyro[2] = big_endian_to_short(&buff[9]) * M_PI / 180 / 10.0;
// X_ACCL_OUT
accl[0] = big_endian_to_short(&buff[11]) * M_PI / 180 / 10.0;
// Y_ACCL_OUT
accl[1] = big_endian_to_short(&buff[13]) * M_PI / 180 / 10.0;
// Z_ACCL_OUT
accl[2] = big_endian_to_short(&buff[15]) * M_PI / 180 / 10.0;
// TEMP_OUT
temp = big_endian_to_short(&buff[16]) * 0.1;
return 0;
shouldn't the factor for *_ACCL_OUT be: ( 9.8 / 800 ) since data is in 16-bit format?
In update_burst function,
// X_GYRO_OUTgyro[0] = big_endian_to_short(&buff[5]) * M_PI / 180 / 10.0;// Y_GYRO_OUTgyro[1] = big_endian_to_short(&buff[7]) * M_PI / 180 / 10.0;// Z_GYRO_OUTgyro[2] = big_endian_to_short(&buff[9]) * M_PI / 180 / 10.0;// X_ACCL_OUTaccl[0] = big_endian_to_short(&buff[11]) * M_PI / 180 / 10.0;// Y_ACCL_OUTaccl[1] = big_endian_to_short(&buff[13]) * M_PI / 180 / 10.0;// Z_ACCL_OUTaccl[2] = big_endian_to_short(&buff[15]) * M_PI / 180 / 10.0;// TEMP_OUTtemp = big_endian_to_short(&buff[16]) * 0.1;return 0;shouldn't the factor for *_ACCL_OUT be: ( 9.8 / 800 ) since data is in 16-bit format?