Skip to main content
DBish.1
Associate
June 7, 2021
Question

Not getting gyro value accurate

LSM6DOXTR , I m reading this sensor by configuring 0x10 and 0x11 modules to 0x60 and 0x60 as show in user guide by ST but  the values I get of accelerometer are correct while gyro value jump to 0 to 255 as I am only reading MSB. LSB is changing rapidly

This topic has been closed for replies.

4 replies

Javier1
Principal
June 7, 2021

What if, youre reading a signed int8_t as if it was unsigned uint8_t?

That would explain your overflows

hit me up in https://www.linkedin.com/in/javiermuñoz/
DBish.1
DBish.1Author
Associate
June 7, 2021

I tried this i tried both uint8_t and int8_t getting same result , values are in buffRead[1],[3],[5]0693W00000BaFDcQAN.png0693W00000BaFVUQA3.png

Javier1
Principal
June 7, 2021

what do you mean with same result?

You would expect different behaviours from reading a signed or unsigned variable.

hit me up in https://www.linkedin.com/in/javiermuñoz/
DBish.1
DBish.1Author
Associate
June 7, 2021

I mean the variation in value value still jump as you can see in the image