@user111620 you'll need to update your Bangle.js firmware to the latest version to have it reliable.
Right now we use just the magnetometer X and Y values for the angle. If you don't hold it level then like a real compass it'll read differently.
I guess you can't easily just add the Z value in, so I guess as you say I think you'd have to:
mag.dy*accel.z + mag.dz*accel.y
© Espruino, powered by microcosm.
Report a problem