I'm using the Adafruit BNO085 IMU.
I'm trying to get the absolute orientation. First I was converted the magnetic field strength vector to a degree (heading) using this formula.
heading = atan2(y, x) * 180 / M_PI;
I also realized that it has the option to produce an absolute orientation vector using fusion sensor (magnetometer, gyro, and accelerometer) in Quaternion.
I changed that to get euler's coordinates.
Now my issue is that these numbers are not the same. Like they're more or less 90 degrees apart. I guess I'm understanding something incorrectly. Which one should I be using to get the correct heading and what do these actually represent if my logic is already flawed?