Apologies if this is a stupid question, but if I have a 3-axis magnetometer, and I calculate the vector magnitude as
sqrt(magX * magX + magY * magY + magZ * magZ)
...then should I not always get the same value, regardless of the sensor's orientation? Mine is all over the place, and I feel as though I'm missing something obvious.