The task of a homing head of an anti‐aircraft short‐range missile is to determine the position of the missile relative to a target. The most modern missiles use scanning heads. The propelling element of such a head in the paper is a gyroscope system. Disturbance acting on a gyroscope system cause its deviations from the set direction. In order to ensure precise and stable target tracking by a head, it is important to optimally select the gyroscope system control parameters, which enables mitigating the impact of such disturbance on the positioning accuracy of its axis. The paper suggests and implements a sliding mode controller in a gyroscope system, used for target seeking and tracking. Tests comparing a control system with a PD controller with optimal parameters and with a sliding mode controller were performed in a Matlab/Simulink environment. Selected test results were shown in graphic form.