sparkfun / SparkFun_LSM9DS1_Arduino_Library

Arduino library for the LSM9DS1 9DOF IMU.
Other
64 stars 78 forks source link

FIFO mode enum bug #19

Closed sheitbri closed 5 years ago

sheitbri commented 5 years ago

In LSM9DS_Types.h line 174, FIFO_CONT should equal 6.

andreadevo commented 5 years ago

Thank you for the suggestion! However, based on Table 84 located on page 56 of the datasheet, it appears FIFO_CONT is currently set to the correct value of 5. May I ask where you are seeing that it should equal 6?

sheitbri commented 5 years ago

For continous mode: FIFOMODE2=1 FIFOMODE1=1 FIFOMODE0=0

So 1(22) + 1(21) + 0*(10 ) = 4+2+0= 6

andreadevo commented 5 years ago

Thank you for following up! I misread the table myself. The code should now correctly reflect FIFO_CONT equal to 6.