How can gyroscopes be used to find the angular velocity?

I was reading that gyroscopes can be used to measure the angular velocity of precession, such as in the hubble space telescope, but mathematically how can this be done?
Many thanks

mfb
Mentor