Default [Q]Help my gyroscope doesn't work how to reset it?

So I wanted to root/rom my samsung galaxy y gt-s5360t to samsung galaxy y gt-s5360 not big of a difference but still and now my gyroscope is weird up is right down is left and i tried to calibrate it and when i checked the accelerometer it didn't seem to be that bad only a bit off please help it's driving me crazy i have to tilt my head , it seems the gyroscope when the phone is straight not on surface goes right it's inverted!