An atomchip gyro: theory and experiment