Skip to main content
Visitor II
June 7, 2021
Question

Not getting gyro value accurate

  • June 7, 2021
  • 3 replies
  • 1251 views

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.

    3 replies

    Graduate II
    June 7, 2021

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

    That would explain your overflows

    DBish.1Author
    Visitor II
    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

    Graduate II
    June 7, 2021

    what do you mean with same result?

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

    DBish.1Author
    Visitor II
    June 7, 2021

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