Gyro-compassing is part of the levelling and alignment procedure in which the laser gyros detect the rotation of the Earth in order to define North.
This can only happen when the aircraft is stationary on the ground and not in flight.