I hope you guys understand the question, it might be a little confusing, or maybe too easy to answer.
I'm working on a school project with an accelerometer and a microcontroller and one of the things I'm trying to do is to display the angles on the X,Y and Z axis as I tilt the accelerometer in different directions, I'll be using Java for that.
I managed to convert the readings from the accelerometer by mapping the values into degrees (eg. 355-522 -----> 0 - 90 degrees). I only knew how to do it with the readings from the X and Y axis, however, having the X and Y values in degrees, is there anyway I can calculate Z ?
I'm working on a school project with an accelerometer and a microcontroller and one of the things I'm trying to do is to display the angles on the X,Y and Z axis as I tilt the accelerometer in different directions, I'll be using Java for that.
I managed to convert the readings from the accelerometer by mapping the values into degrees (eg. 355-522 -----> 0 - 90 degrees). I only knew how to do it with the readings from the X and Y axis, however, having the X and Y values in degrees, is there anyway I can calculate Z ?