mpu9250-pitch,roll and yaw

By far the best open-source IMU (absolute orientation) code for the MPU9250 is RTIMUlib for Arduino.