cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting gyro value accurate

DBish.1
Associate II

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

4 REPLIES 4
Javier1
Principal

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

That would explain your overflows

we dont need to firmware by ourselves, lets talk
DBish.1
Associate II

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

what do you mean with same result?

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

we dont need to firmware by ourselves, lets talk
DBish.1
Associate II

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