finani / ICM42688

Arduino library for communicating with the InvenSense ICM42688 nine-axis IMUs.
MIT License
47 stars 21 forks source link

Compute and set Offsets on the the chip registers (User Bank 4), with Raw reading, Notch Filter #13

Closed sylvanoMTL closed 2 months ago

sylvanoMTL commented 4 months ago

Here are the main updates: 1) Raw reading getRawAGT(): necessary to compute offsets 2) Data reading getAGT(): use the rawReading, method. 3) Added some definitions 4) Added get resolutions 5) Added compute Offsets: compute the offset to be put in the user bank register, this provide a simple calibration method 6) Added set offset methods: either setting all Offsets are once, or setting for each axis, gyro and accelerometer 7) Added an example on how to use the Offset methods. 8) Notch filter settings, user should input the notch frequencies for each axis, and Bandwidth (untested) added enum for the bandwidth. (testing would require to stream data towards an analyzer and having a code to change the notch filter live)

finani commented 2 months ago

LGTM