gyro sensor

Has anybody been able to get a gyro sensor working with VCS in V5? If so can you point me in the direction of code to set it up.

https://vexforum.com/t/gyro-acting-weird-v5/50841/1