Slow Processor Does Not Work Well With MPU-6050

The MPU-6050 is outdated, and no orientation algorithm can correct quickly for very rapid disturbances.

Consider absolute orientation sensors like the BNO055, which has a more powerful on board processor and a magnetometer for yaw measurements.