I use the “SparkFun_MPU-9250-DMP_Arduino_Library” on a Sam21d.
When I reboot the direction starts at 360 degrees and counts down about 33° approximately to 327°.That takes round about 15 seconds. The orientation of the MPU is irrelevant. If have no idea whats going wrong.
regards
Joerg