MPU6050 + QMC5883 (hmc5883) PROGRAM 360 DEGREE

I am looking for a project based on Arduino (atmega328/168/88) with MPU6050 + magnetrometer (qmc5883 or hmc5883). I am interested in reading the rotation in 360-degree space, X, Y, Z data sent via UART cable. I saw a lot of projects, but this was the basic use of an accelerometer or gyroscope max +90/-90 degrees. I don't program in Arduino, so it would be nice if there is a hex / bin file.