We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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;
// 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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: