gyro manipulation

http://www.pieter-jan.com/node/7

This website shows how to get rotational position values from a gyrosensor.