I'm sorry, but that is not correct. You can turn the sensor in every directions and turn it as many times as you want. Any rotation and any angle will work. Both the accelerometer and the gyro are full 3D sensors with working X, Y and X axis.
Do you think that there is an other sensor out there that can do 360 degree gyro ? They are all the same, they all do full 3D with X, Y and Z axis.
It is possible that your sensor is fake or broken.
The code posted in the link is utter nonsense, which you cut and paste from somewhere else, and cannot work correctly. It does not even use the rate gyro sensor component. Look elsewhere for MPU-6050 code that actually works.
I was browsing some codes today and came across the same one.
A sigh of disappointment followed lol
I don't like the tangential factors for the data either.
It works perfectly for one direction alone.
It's likely recursive because i get a lot of "interference" when adding multiple axes.
I appreciate your input. Maybe i need to write my own code