I want to rectify ADXL345 readings so they are only positive and based on 0 when at rest, but the value of mAV fluctuates between 0.31 and 0.47 although the set-up sits on a concrete basement floor, with no vibrating machines or vehicles nearby. Is this some kind of noise?
const float valueShift = 9.81;
mAV = abs(sqrt(ax * ax + ay * ay + az * az) - valueShift);
Quite likely noise from traffic or who knows from you environment. Place a thick sponge between the ADXL and the concrete floor and see if there is a change in the fluctuation values.
The ADXL345 is not calibrated. If you want each axis to accurately report 1g when it is vertical, you will have to calibrate the accelerometer to remove the three offsets and make better estimates of the individual scale factors.
Thought with the "total acceleration" I'm interested in, that wouldn't matter that much, but the six x, y, z, up, down values are quite different indeed. I'd like to see that machine that does that in industries with ultra high volume products like smartphones ; )