Arduino-libraries icon indicating copy to clipboard operation
Arduino-libraries copied to clipboard

getRangeSetting should change range array accorantly

Open lestofante opened this issue 13 years ago • 1 comments

the funciotn void ADXL345::getRangeSetting(byte* rangeSetting)

should change the gain array discordantly, so the result will always be in G.

just multiply the gain by the (new range / old range) and remember that the first reading probably still use the old gain if in continuous mode

lestofante avatar Nov 10 '12 17:11 lestofante

Sorry for not replying earlier, but I didn't get an alert on this from GIT back in 2012 when you posted :-/

I'm not sure changing the gain values automatically is correct? Please explain?

jenschr avatar Nov 15 '16 22:11 jenschr