We don’t have much personal experience with DOF hardware, but this Arduino library which reads and compensates for three-axis magnetometer and accelerometer data looks very impressive. It should work ...
ADI’s ADXL375 200-g digital MEMS accelerometer delivers more than twice the bandwidth at less than half the power consumption of competing sensors used to measure high-g events. NORWOOD, ...