To limit the growth of errors of an inertial navigation system for measurement-while-drilling, in-drilling alignment methods can be used. A pneumatics-based design of an apparatus for an in-drilling alignment method and its implementation downhole are described.