I have a functionality question regarding the FXAS21002C gyroscope. I am able to print the values from the sensor in real time. But I want to display the angular displacement and hold that value in that position rather than fall back to zero if movement stops. I am under the impression that integration of the values over a fixed time will fix it. I am a beginner in C and would appreciate some close references or sample codes to implement.