MPU6050 Gyro value going back to initial value irrespective of Angle

It depends on the declaration of offsetVal.