sparkfun/SparkFun_LSM9DS1_Arduino_Library

Initialising IMU overwrites settings

nuhash opened this issue · 1 comments

When calling LSM9DS1::begin(...), it calls LSM9DS1::init() which overrides any user defined settings

Perhaps call LSM9DS1::init() within the constructor instead to set default values for the settings. Users can then change them as necessary prior to calling LSM9DS1::begin().

The funny thing here is that pretty much every example for this library that I found configures settings and then calls begin(..). All of these examples are broken and use default settings.

I think the solution proposed by @nuhash is the right way to go.