Gyro count is off

We print the gyro sensor value on our brain constantly, and after turning the robot fully around, 360 degrees, the value is shown as about 40 degrees. Any way to fix this or re-calibrate the gyro?