Analysis of optimal control. Implementation of a digital autopilot capable of providing the position of aircraft step. Optimization of the determination of the parameters of the digital PI controller, necessary for stabilizing the position of the pitch.