SparkFun_MMA8452Q_Arduino_Library icon indicating copy to clipboard operation
SparkFun_MMA8452Q_Arduino_Library copied to clipboard

set scale factor in the object as well

Open binomaiheu opened this issue 3 years ago • 0 comments

Dear all,

First of all thanks for this library (and allowing me to add some "advanced" telemetry to the kids' waterrocket :)) I noticed when playing with the setScale() function, that the readings for getCalculatedX(), etc changed by a similar factor, which I assume shouldn't happen as they are in units of g.

Shouldn't the the "scale" factor also be set in the setScale() function in addition to the hardware configuration of the sensor itself ? That way the scale is correctly taken into account in the getCalculatedX(), .... functions. Or perhaps I'm missing something.

Cheers, bino

binomaiheu avatar Apr 10 '21 14:04 binomaiheu