Skip to content
New issue

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

update_burst #32

Open
jamilaaria opened this issue Mar 19, 2020 · 0 comments
Open

update_burst #32

jamilaaria opened this issue Mar 19, 2020 · 0 comments

Comments

@jamilaaria
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant