The invention discloses a
software design method based on carrier
rocket seven-
machine swing angle distribution. The method comprises the steps that a
servo swing angle calculation structural body and a
servo swing angle calculation binding data structural body are initialized; endowing contents in the binding
data file to a
servo swing angle calculation binding data structural body; acquiring input data required by servo swing angle calculation; control signals of a pitching channel, a
yaw channel and a rolling channel of the carrier
rocket are obtained through calculation; distributing the calculated control signals of the pitching channel, the
yaw channel and the rolling channel of the carrier
rocket; performing fault diagnosis on the servo; calculating to obtain a servo swing angle
signal; and carrying out amplitude limiting
processing on the servo swing angle
signal to obtain a servo actual swing angle
signal, and outputting the servo actual swing angle signal. According to the scheme, the functions of input of swing angle distribution calculation, servo fault diagnosis and judgment, calculation of control signals of each servo and output of the
servo control signals are achieved in the mode of designing universal
software components, and the capacity of adapting to circumferential servo faults is achieved.