Hi,
Thanks for your inquiry.
BMX055 is a 9-axis sensor that includes 3-axis accel, 3-axis gyro and 3-axis magnetometer. In order to get a tilt compensated eCompass, you need to use both accel data in the unit of g and magnetometer data in the unit of uT from BMX055. In order to make the heading angle be immune to the external magnetic interference field, you need to use gyro data in the unit of degree per second or radian per second. Therefore, you need sensor fusion algorithm to get eCompass from BMX055.
Please download BSXLite sensor fusion library at https://www.bosch-sensortec.com/software-tools/software/sensor-fusion-software/ and integrate it into your firmware. Then you can get the eCompass right away from BMX055.
Thanks.
... View more