Are These Good MPU-9250 Values?

Im getting these values back from my MPU-9250 when using an arduino script which I will attatch along with the results im getting. I want to plug the values into a game service called Unity but when I do the thing I want to rotate starts rotating up and down and sort of sparratic-like. I am unsure of whether there is something I need to do to make these values smoother, and if there is please instruct me on what to do, or whether these are just the values generated by the mpu9250. I doubt they are because im using the mpu-9250 as an upgrade to the previous chip I was using, the mpu6050, and it had rotations smoother than this. Maybe Im using the wrong script, maybe its not calibrated, I am unsure. Please give me some guidance. Any help is appreciated! Thanks! =)

barebonesmpureallibrary.ino (53.3 KB)

mpu9250out.txt (64.4 KB)

Kris Winer's code for the MPU-9250 has never worked properly, and reports utter nonsense. The fatal bug was reported long ago, but Winer is not interested in fixing it. The Sparkfun code, derived from Winer's, doesn't work either.

Working MPU-9250 Madgwick/Mahony AHRS code is posted here, but it is ABSOLUTELY ESSENTIAL that you properly calibrate the MPU-9250, or you will still get nonsense.

Follow the directions and links in the README and "docs" for instructions.

Oh my gosh this is what I needed to hear thank you so much I got this device as an upgrade from the previous chips with high hopes and the fact that it was worse than its predessecor was concerning me and making me think "well since the chip is obviously better it must be me who is failing" and since I couldnt live up to my expectations I felt real bad about myself but knowing it wasnt me is what I needed to know thank you so much kind sir im shaking as i write this :disappointed_relieved: :smiley: :smiley: :smiley:

Please post questions on the forum, following forum guidelines. I don't do private consultations.