载人飞行器飞行姿态控制方法、系统及载人飞行器Manned aircraft flight attitude control method, system and manned aircraft
本申请要求在2021年01月29日提交中国专利局、申请号202110134374.2、发明名称为“载人飞行器飞行姿态控制方法、系统及载人飞行器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on January 29, 2021, with the application number of 202110134374.2 and the invention titled "Flight Attitude Control Method, System and Manned Aircraft for a Manned Aircraft", the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请涉及飞行器及控制技术领域,尤其涉及一种载人飞行器飞行姿态控制方法、系统及载人飞行器。The present application relates to the technical field of aircraft and control, and in particular, to a flight attitude control method and system for a manned aircraft, and a manned aircraft.
背景技术Background technique
目前,飞行器技术中,稳定控制十分重要,各种控制算法被运用在无人飞行器或载人飞行器的飞行姿态的稳定控制中。常用的控制器有PID(Proportion Integration Differentiation比例积分微分)控制器、反步法控制器等。其中PID控制器因为其简单、高效的优点被广泛应用。At present, stability control is very important in aircraft technology, and various control algorithms are used in the stability control of the flight attitude of unmanned aerial vehicles or manned aerial vehicles. Commonly used controllers include PID (Proportion Integration Differentiation) controller, backstepping controller and so on. Among them, PID controller is widely used because of its simplicity and high efficiency.
传统的PID控制方法中,涉及的参数主要包括P、I、D三个参数,其中P为比例参数,I为积分参数,D为微分参数。三个参数的计算值运算得到一个输出的控制值,控制调节缩小飞行姿态的姿态误差。In the traditional PID control method, the parameters involved mainly include three parameters: P, I, and D, where P is a proportional parameter, I is an integral parameter, and D is a differential parameter. The calculated value of the three parameters is calculated to obtain an output control value, which controls and adjusts the attitude error of reducing the flight attitude.
但是,相关技术中,在飞行器飞行过程中,存在很多干扰,例如气流干扰、飞机重心不平横、动力参数不一致等等外在或内在干扰。PID控制虽然参数简单,但是其鲁棒性较差,存在不同程度的局限性和瓶颈问题,而且抗干扰能力较差,例如:初始控制力过大容易造成系统震荡或严重超调;为了消除残差而设置的积分环节,会使系统的控制响应滞后;微分信号只能近似实现,容易受到噪声的污染,控制效果差。However, in the related art, during the flight of the aircraft, there are many disturbances, such as airflow disturbance, uneven center of gravity of the aircraft, inconsistent dynamic parameters, and other external or internal disturbances. Although the parameters of PID control are simple, its robustness is poor, there are limitations and bottlenecks in different degrees, and the anti-interference ability is poor. The integral link set due to the difference will make the control response of the system lag; the differential signal can only be approximated, which is easily polluted by noise and has poor control effect.
因此,相关技术的飞行姿态控制方法有待继续改进。Therefore, the flight attitude control method of the related art needs to be further improved.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本申请提供一种载人飞行器飞行姿态控制方法、系统及载人飞行器,具有较好的自抗干扰能力,可以提高载人飞行器飞行稳定性。In order to overcome the problems existing in the related art, the present application provides a flight attitude control method and system for a manned aircraft, and a manned aircraft, which have better anti-jamming capability and can improve the flight stability of the manned aircraft.
本申请第一方面提供一种载人飞行器飞行姿态控制方法,包括:A first aspect of the present application provides a method for controlling the flight attitude of a manned aircraft, including:
通过跟踪微分器对输入的飞行器的期望姿态值进行处理,得到所述期望姿态值的微分参数值;The input expected attitude value of the aircraft is processed by the tracking differentiator to obtain the differential parameter value of the expected attitude value;
通过状态观测器对获取的飞行器的当前姿态值进行处理,得到所述当前姿态值的姿态反馈值;The obtained current attitude value of the aircraft is processed by the state observer to obtain the attitude feedback value of the current attitude value;
根据所述期望姿态值的微分参数值与所述当前姿态值的姿态反馈值进行运算,得到设定误差值;According to the differential parameter value of the desired attitude value and the attitude feedback value of the current attitude value, a set error value is obtained;
通过非线性控制器对所述设定误差值进行处理,输出控制飞行姿态的第一控制值以控制所述飞行器的飞行姿态。The set error value is processed by a nonlinear controller, and a first control value for controlling the flight attitude is output to control the flight attitude of the aircraft.
在一种实施方式中,所述通过非线性控制器对所述设定误差值进行处理,输出控制飞行姿态的第一控制值之后,还包括:In an implementation manner, after processing the set error value by the nonlinear controller and outputting the first control value for controlling the flight attitude, the method further includes:
根据所述第一控制值与所述当前姿态值的姿态反馈值进行运算,输出控制飞行姿态的第二控制值以控制所述飞行器的飞行姿态。The operation is performed according to the first control value and the attitude feedback value of the current attitude value, and a second control value for controlling the flying attitude is output to control the flying attitude of the aircraft.
在一种实施方式中,所述通过跟踪微分器对输入的飞行器的期望姿态值进行处理,得到所述期望姿态值的微分参数值,包括:In one embodiment, the inputted expected attitude value of the aircraft is processed by the tracking differentiator to obtain the differential parameter value of the expected attitude value, including:
采用跟踪微分器并使用最速控制综合函数,对输入的飞行器的期望姿态值按第一预设算法进行处理,输出期望姿态角及所述期望姿态角的微分值。Using the tracking differentiator and using the fastest control synthesis function, the input expected attitude value of the aircraft is processed according to the first preset algorithm, and the expected attitude angle and the differential value of the expected attitude angle are output.
在一种实施方式中,所述通过状态观测器对获取的飞行器的当前姿态值进行处理,得到所述当前姿态值的姿态反馈值,包括:In one embodiment, the state observer processes the acquired current attitude value of the aircraft to obtain the attitude feedback value of the current attitude value, including:
采用状态观测器,对获取的飞行器的当前姿态值按第二预设算法进行处理,得到观测姿态值、观测姿态微分值、当前飞行器的扰动反馈值。Using the state observer, the acquired current attitude value of the aircraft is processed according to the second preset algorithm, and the observed attitude value, the differential value of the observed attitude, and the current disturbance feedback value of the aircraft are obtained.
在一种实施方式中,所述根据所述期望姿态值的微分参数值与所述当前姿态值的姿态反馈值进行运算,得到设定误差值,包括:将所述期望姿态角与所述观测姿态值相减,得到姿态误差值;将期望姿态角的微分值与所述观测姿态微分值相减,得到姿态微分误差值;In an implementation manner, the calculation based on the differential parameter value of the desired attitude value and the attitude feedback value of the current attitude value to obtain a set error value includes: combining the desired attitude angle with the observed The attitude value is subtracted to obtain the attitude error value; the differential value of the desired attitude angle is subtracted from the observed attitude differential value to obtain the attitude differential error value;
所述通过非线性控制器对所述设定误差值进行处理,输出控制飞行姿态的第一控制值以控制所述飞行器的飞行姿态,包括:The non-linear controller processes the set error value, and outputs a first control value for controlling the flight attitude to control the flight attitude of the aircraft, including:
采用非线性控制器,对所述姿态误差值和姿态微分误差值按第三预 设算法进行处理,输出控制飞行姿态的第一控制值以控制所述飞行器的飞行姿态。Using a nonlinear controller, the attitude error value and the attitude differential error value are processed according to a third preset algorithm, and a first control value for controlling the flight attitude is output to control the flight attitude of the aircraft.
在一种实施方式中,所述根据所述第一控制值与所述当前姿态值的姿态反馈值进行运算,输出控制飞行姿态的第二控制值以控制所述飞行器的飞行姿态,包括:In an embodiment, the operation according to the first control value and the attitude feedback value of the current attitude value, and outputting the second control value for controlling the flight attitude to control the flight attitude of the aircraft, includes:
将所述第一控制值与所述当前飞行器的扰动反馈值相减,输出控制飞行姿态的第二控制值以控制所述飞行器的飞行姿态。The first control value is subtracted from the disturbance feedback value of the current aircraft, and a second control value for controlling the flight attitude is output to control the flight attitude of the aircraft.
本申请第二方面提供一种飞行姿态控制系统,包括:A second aspect of the present application provides a flight attitude control system, including:
跟踪微分器,用于对输入的飞行器的期望姿态值进行处理,得到所述期望姿态值的微分参数值;a tracking differentiator, configured to process the input expected attitude value of the aircraft to obtain a differential parameter value of the expected attitude value;
状态观测器,用于对获取的飞行器的当前姿态值进行处理,得到所述当前姿态值的姿态反馈值;a state observer, configured to process the acquired current attitude value of the aircraft to obtain an attitude feedback value of the current attitude value;
非线性控制器,用于对设定误差值进行处理,输出控制飞行姿态的第一控制值以控制所述飞行器的飞行姿态,其中所述设定误差值根据所述期望姿态值的微分参数值与所述当前姿态值的姿态反馈值进行运算得到。a nonlinear controller for processing the set error value and outputting a first control value for controlling the flight attitude to control the flight attitude of the aircraft, wherein the set error value is based on the differential parameter value of the desired attitude value Obtained by operation with the attitude feedback value of the current attitude value.
在一种实施方式中,所述系统还包括:In one embodiment, the system further includes:
调整模块,用于根据所述非线性控制器输出的第一控制值与所述状态观测器得到的当前姿态值的姿态反馈值进行运算,输出控制飞行姿态的第二控制值以控制所述飞行器的飞行姿态。an adjustment module, configured to perform an operation according to the first control value output by the nonlinear controller and the attitude feedback value of the current attitude value obtained by the state observer, and output a second control value for controlling the flight attitude to control the aircraft flight attitude.
在一种实施方式中,所述跟踪微分器使用最速控制综合函数,对输入的飞行器的期望姿态值按第一预设算法进行处理,输出期望姿态角及所述期望姿态角的微分值;In one embodiment, the tracking differentiator uses the fastest control comprehensive function to process the input desired attitude value of the aircraft according to a first preset algorithm, and outputs the desired attitude angle and the differential value of the desired attitude angle;
所述状态观测器对获取的飞行器的当前姿态值按第二预设算法进行处理,得到观测姿态值、观测姿态微分值、当前飞行器的扰动反馈值;The state observer processes the acquired current attitude value of the aircraft according to the second preset algorithm, and obtains the observation attitude value, the observation attitude differential value, and the disturbance feedback value of the current aircraft;
所述非线性控制器对姿态误差值和姿态微分误差值按第三预设算法进行处理,输出控制飞行姿态的第一控制值以控制所述飞行器的飞行姿态,其中将所述期望姿态角与所述观测姿态值相减,得到姿态误差值,将所述期望姿态角的微分值与所述观测姿态微分值相减,得到姿态微分 误差值。The nonlinear controller processes the attitude error value and the attitude differential error value according to a third preset algorithm, and outputs a first control value for controlling the flight attitude to control the flight attitude of the aircraft, wherein the desired attitude angle is compared with the flight attitude. The observed attitude values are subtracted to obtain an attitude error value, and the differential value of the desired attitude angle is subtracted from the observed attitude differential value to obtain an attitude differential error value.
在一种实施方式中,所述调整模块将所述非线性控制器输出的第一控制值与与所述状态观测器得到的当前飞行器的扰动反馈值相减,输出控制飞行姿态的第二控制值以控制所述飞行器的飞行姿态。In one embodiment, the adjustment module subtracts the first control value output by the nonlinear controller and the current disturbance feedback value of the aircraft obtained by the state observer, and outputs a second control value for controlling the flight attitude value to control the flight attitude of the aircraft.
本申请第三方面提供一种载人飞行器,包括上述的飞行姿态控制系统。A third aspect of the present application provides a manned aircraft, including the above-mentioned flight attitude control system.
本申请第四方面提供一种电子设备,包括:A fourth aspect of the present application provides an electronic device, comprising:
处理器;以及processor; and
存储器,其上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器执行上述的方法。A memory having executable codes stored thereon, and when the executable codes are executed by the processor, causes the processor to execute the above-described method.
本申请提供的技术方案可以包括以下有益效果:The technical solution provided by this application can include the following beneficial effects:
本申请实施例提供的飞行姿态控制方法,利用了跟踪微分器、状态观测器和非线性控制器综合进行运算,通过跟踪微分器对输入的飞行器的期望姿态值进行处理,得到所述期望姿态值的微分参数值;通过状态观测器对获取的飞行器的当前姿态值进行处理,得到所述当前姿态值的姿态反馈值;根据所述期望姿态值的微分参数值与所述当前姿态值的姿态反馈值进行运算,得到设定误差值;通过非线性控制器对所述设定误差值进行处理,输出控制飞行姿态的第一控制值。相关技术中如果期望姿态值与当前实际姿态值之间存在较大偏差,使用PID控制很容易产生过冲(指输出超过了它的最终稳态值)和超调(指超过给定值)的问题,而本申请方案通过跟踪微分器的处理,设置了一个过渡过程,让期望姿态值的输入更加平缓,有了一个过渡过程后,就可以在基本无超调的前提下实现对期望姿态值的快速跟踪,并且结合状态观测器和非线性控制器对设定误差值进行处理,可以比较稳定输出控制飞行姿态的控制值,从而使得控制系统具有较好的自抗干扰能力,提高载人飞行器飞行稳定性。The flight attitude control method provided by the embodiment of the present application utilizes a tracking differentiator, a state observer and a nonlinear controller to perform comprehensive operations, and processes the input expected attitude value of the aircraft through the tracking differentiator to obtain the expected attitude value. The obtained differential parameter value of the aircraft is processed by the state observer to obtain the attitude feedback value of the current attitude value; according to the differential parameter value of the desired attitude value and the attitude feedback of the current attitude value The set error value is obtained by calculating the value; the set error value is processed by the nonlinear controller, and the first control value for controlling the flight attitude is output. In the related art, if there is a large deviation between the expected attitude value and the current actual attitude value, it is easy to generate overshoot (referring to the output exceeding its final steady state value) and overshoot (referring to exceeding the given value) using PID control. However, the solution of this application sets up a transition process through the processing of the tracking differentiator to make the input of the desired attitude value smoother. After a transition process, the desired attitude value can be realized under the premise of basically no overshoot The fast tracking and processing of the set error value combined with the state observer and the nonlinear controller can relatively stably output the control value for controlling the flight attitude, so that the control system has a better anti-interference ability and improves the manned aircraft. flight stability.
进一步的,本申请实施例提供的方法,通过状态观测器能够实时观测未知的外部扰动,反馈出扰动分量即扰动反馈值,最后在控制器输出部分再减去该扰动分量,即可消除外部扰动,进一步增强飞行姿态的稳 定性。Further, in the method provided by the embodiment of the present application, the state observer can observe the unknown external disturbance in real time, feedback the disturbance component, that is, the disturbance feedback value, and finally subtract the disturbance component from the output part of the controller to eliminate the external disturbance. , to further enhance the stability of the flight attitude.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.
附图说明Description of drawings
通过结合附图对本申请示例性实施方式进行更详细的描述,本申请的上述以及其它目的、特征和优势将变得更加明显,其中,在本申请示例性实施方式中,相同的参考标号通常代表相同部件。The above and other objects, features and advantages of the present application will become more apparent from the more detailed description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the exemplary embodiments of the present application. same parts.
图1是本申请实施例示出的一种载人飞行器飞行姿态控制方法的流程示意图;1 is a schematic flowchart of a method for controlling the flight attitude of a manned aircraft according to an embodiment of the present application;
图2是本申请实施例示出的另一种载人飞行器飞行姿态控制方法的流程示意图;2 is a schematic flowchart of another method for controlling the flight attitude of a manned aircraft according to an embodiment of the present application;
图3是本申请实施例示出的另一种载人飞行器飞行姿态控制方法的流程示意图;3 is a schematic flowchart of another method for controlling the flight attitude of a manned aircraft according to an embodiment of the present application;
图4是本申请实施例示出的应用控制系统进行飞行姿态控制的应用示意图;4 is a schematic diagram of an application of the application control system shown in the embodiment of the present application to perform flight attitude control;
图5是本申请实施例示出的飞行姿态控制系统的结构示意图;5 is a schematic structural diagram of a flight attitude control system shown in an embodiment of the present application;
图6是本申请实施例示出的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
具体实施方式Detailed ways
下面将参照附图更详细地描述本申请的优选实施方式。虽然附图中显示了本申请的优选实施方式,然而应该理解,可以以各种形式实现本申请而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了使本申请更加透彻和完整,并且能够将本申请的范围完整地传达给本领域的技术人员。Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While preferred embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of this application to those skilled in the art.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语“第一”、“第二”、“第三”等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the present application, "plurality" means two or more, unless otherwise expressly and specifically defined.
目前相关技术使用PID控制的飞行姿态控制方法,控制效果有待改进。针对上述问题,本申请实施例提供一种载人飞行器飞行姿态控制方法,具有较好的自抗干扰能力,可以提高载人飞行器飞行稳定性。以下结合附图详细描述本申请实施例的技术方案。At present, the related art uses a PID-controlled flight attitude control method, and the control effect needs to be improved. In view of the above problems, the embodiments of the present application provide a method for controlling the flight attitude of a manned aircraft, which has better anti-jamming capability and can improve the flight stability of the manned aircraft. The technical solutions of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图1是本申请实施例示出的一种载人飞行器飞行姿态控制方法的流程示意图。FIG. 1 is a schematic flowchart of a method for controlling the flight attitude of a manned aircraft according to an embodiment of the present application.
参见图1,该方法包括:Referring to Figure 1, the method includes:
在步骤S101中,通过跟踪微分器对输入的飞行器的期望姿态值进行处理,得到期望姿态值的微分参数值。In step S101, the input expected attitude value of the aircraft is processed by the tracking differentiator to obtain the differential parameter value of the expected attitude value.
其中,可以采用跟踪微分器并使用最速控制综合函数,对输入的飞行器的期望姿态值按第一预设算法进行处理,输出期望姿态角及期望姿态角的微分值。Wherein, a tracking differentiator can be used and the fastest control comprehensive function can be used to process the input expected attitude value of the aircraft according to the first preset algorithm, and output the expected attitude angle and the differential value of the expected attitude angle.
在步骤S102中,通过状态观测器对获取的飞行器的当前姿态值进行处理,得到当前姿态值的姿态反馈值。In step S102, the acquired current attitude value of the aircraft is processed by the state observer to obtain the attitude feedback value of the current attitude value.
其中,可以采用状态观测器,对获取的飞行器的当前姿态值按第二预设算法进行处理,得到观测姿态值、观测姿态微分值、当前飞行器的扰动反馈值。Wherein, a state observer may be used to process the acquired current attitude value of the aircraft according to the second preset algorithm to obtain the observed attitude value, the differential value of the observed attitude, and the disturbance feedback value of the current aircraft.
在步骤S103中,根据期望姿态值的微分参数值与当前姿态值的姿态反馈值进行运算,得到设定误差值。In step S103, an operation is performed according to the differential parameter value of the desired attitude value and the attitude feedback value of the current attitude value to obtain a set error value.
其中,可以将期望姿态角与观测姿态值相减,得到姿态误差值;将期望姿态角的微分值与观测姿态微分值相减,得到姿态微分误差值。Among them, the expected attitude angle and the observed attitude value can be subtracted to obtain the attitude error value; the differential value of the expected attitude angle and the observed attitude differential value can be subtracted to obtain the attitude differential error value.
在步骤S104中,通过非线性控制器对设定误差值进行处理,输出控 制飞行姿态的第一控制值以控制飞行器的飞行姿态。In step S104, the set error value is processed by the nonlinear controller, and the first control value for controlling the flight attitude is output to control the flight attitude of the aircraft.
其中,可以采用非线性控制器,对姿态误差值和姿态微分误差值按第三预设算法进行处理,输出控制飞行姿态的第一控制值以控制飞行器的飞行姿态。Wherein, a nonlinear controller may be used to process the attitude error value and the attitude differential error value according to a third preset algorithm, and output a first control value for controlling the flight attitude to control the flight attitude of the aircraft.
从该实施例可以看出,相关技术中如果期望姿态值与当前实际姿态值之间存在较大偏差,使用PID控制很容易产生过冲(指输出超过了它的最终稳态值)和超调(指超过给定值)的问题,而本申请方案通过跟踪微分器的处理,设置了一个过渡过程,让期望姿态值的输入更加平缓,有了一个过渡过程后,就可以在基本无超调的前提下实现对期望姿态值的快速跟踪,并且结合状态观测器和非线性控制器对设定误差值进行处理,可以比较稳定输出控制飞行姿态的控制值以控制飞行器的飞行姿态,从而使得控制系统具有较好的自抗干扰能力,提高载人飞行器飞行稳定性。It can be seen from this embodiment that in the related art, if there is a large deviation between the desired attitude value and the current actual attitude value, overshoot (meaning that the output exceeds its final steady-state value) and overshoot are easily generated by using PID control (referring to exceeding a given value), and the solution of this application sets up a transition process by tracking the processing of the differentiator to make the input of the desired attitude value smoother. Under the premise of achieving fast tracking of the desired attitude value, and combining the state observer and the nonlinear controller to process the set error value, the control value of the flight attitude control can be relatively stably output to control the flight attitude of the aircraft, so that the control The system has good anti-jamming capability and improves the flight stability of manned aircraft.
图2是本申请实施例示出的另一种载人飞行器飞行姿态控制方法的流程示意图。图2的流程与图1相比,主要是在非线性控制器输出部分再减去扰动分量,进一步提高稳定性。FIG. 2 is a schematic flowchart of another method for controlling the flight attitude of a manned aircraft according to an embodiment of the present application. Compared with Fig. 1, the process of Fig. 2 mainly subtracts the disturbance component from the output part of the nonlinear controller to further improve the stability.
参见图2,该方法包括:Referring to Figure 2, the method includes:
在步骤S201中,通过跟踪微分器对输入的飞行器的期望姿态值进行处理,得到期望姿态值的微分参数值。In step S201, the input expected attitude value of the aircraft is processed by the tracking differentiator to obtain the differential parameter value of the expected attitude value.
其中,可以采用跟踪微分器并使用最速控制综合函数,对输入的飞行器的期望姿态值按第一预设算法进行处理,输出期望姿态角及期望姿态角的微分值。Wherein, a tracking differentiator can be used and the fastest control comprehensive function can be used to process the input expected attitude value of the aircraft according to the first preset algorithm, and output the expected attitude angle and the differential value of the expected attitude angle.
在步骤S202中,通过状态观测器对获取的飞行器的当前姿态值进行处理,得到当前姿态值的姿态反馈值。In step S202, the acquired current attitude value of the aircraft is processed by the state observer to obtain the attitude feedback value of the current attitude value.
其中,可以采用状态观测器,对获取的飞行器的当前姿态值按第二预设算法进行处理,得到观测姿态值、观测姿态微分值、当前飞行器的扰动反馈值。Wherein, a state observer may be used to process the acquired current attitude value of the aircraft according to the second preset algorithm to obtain the observed attitude value, the differential value of the observed attitude, and the disturbance feedback value of the current aircraft.
在步骤S203中,根据期望姿态值的微分参数值与当前姿态值的姿态反馈值进行运算,得到设定误差值。In step S203, an operation is performed according to the differential parameter value of the desired attitude value and the attitude feedback value of the current attitude value to obtain a set error value.
其中,可以将期望姿态角与观测姿态值相减,得到姿态误差值;将期望姿态角的微分值与观测姿态微分值相减,得到姿态微分误差值。Among them, the expected attitude angle and the observed attitude value can be subtracted to obtain the attitude error value; the differential value of the expected attitude angle and the observed attitude differential value can be subtracted to obtain the attitude differential error value.
在步骤S204中,通过非线性控制器对设定误差值进行处理,输出控制飞行姿态的第一控制值。In step S204, the set error value is processed by the nonlinear controller, and the first control value for controlling the flight attitude is output.
其中,可以采用非线性控制器,对姿态误差值和姿态微分误差值按第三预设算法进行处理,输出控制飞行姿态的第一控制值。Wherein, a nonlinear controller can be used to process the attitude error value and the attitude differential error value according to a third preset algorithm, and output the first control value for controlling the flight attitude.
在步骤S205中,根据第一控制值与当前姿态值的姿态反馈值进行运算,输出控制飞行姿态的第二控制值以控制飞行器的飞行姿态。In step S205, an operation is performed according to the first control value and the attitude feedback value of the current attitude value, and a second control value for controlling the flying attitude is output to control the flying attitude of the aircraft.
其中,可以将第一控制值与当前飞行器的扰动反馈值相减,输出控制飞行姿态的第二控制值以控制飞行器的飞行姿态。The first control value may be subtracted from the current disturbance feedback value of the aircraft, and the second control value for controlling the flight attitude may be output to control the flight attitude of the aircraft.
从该实施例可以看出,本申请方案除了通过跟踪微分器的处理让期望姿态值的输入更加平缓,可以在基本无超调的前提下实现对期望姿态值的快速跟踪之外,通过状态观测器能够实时观测未知的外部扰动,反馈出扰动分量即扰动反馈值,最后在非线性控制器输出部分再减去该扰动分量,即可消除外部扰动,进一步增强飞行姿态的稳定性。It can be seen from this embodiment that, in addition to making the input of the desired attitude value smoother through the processing of the tracking differentiator, the solution of the present application can realize fast tracking of the desired attitude value under the premise of basically no overshoot. The controller can observe the unknown external disturbance in real time, and feed back the disturbance component, that is, the disturbance feedback value. Finally, the disturbance component is subtracted from the output part of the nonlinear controller to eliminate the external disturbance and further enhance the stability of the flight attitude.
图3是本申请实施例示出的另一种载人飞行器飞行姿态控制方法的流程示意图;图4是本申请实施例示出的应用控制系统进行飞行姿态控制的应用示意图。图3相对于图1和图2更详细介绍了本申请的技术方案。FIG. 3 is a schematic flowchart of another method for controlling the flight attitude of a manned aircraft according to an embodiment of the present application; FIG. 4 is a schematic diagram of an application of the application control system shown in the embodiment of the present application for flight attitude control. FIG. 3 introduces the technical solution of the present application in more detail with respect to FIG. 1 and FIG. 2 .
参见图4,该控制系统包括:跟踪微分器、状态观测器和非线性控制器。Referring to Figure 4, the control system includes: a tracking differentiator, a state observer and a nonlinear controller.
跟踪微分器的作用是从被噪声污染的信号中合理的提取微分信号。状态观测器是根据系统的外部变量(输入变量和输出变量)的实测值得出状态变量估计值的一类动态系统,也称为状态重构器。非线性控制器,指的是系统的状态与输出变量在外部条件的影响下,不能用线性关系来描述的系统。The function of the tracking differentiator is to reasonably extract the differential signal from the noise-contaminated signal. The state observer is a kind of dynamic system that obtains the estimated value of the state variable according to the measured value of the external variables (input variable and output variable) of the system, also known as the state reconstructor. A nonlinear controller refers to a system whose state and output variables cannot be described by a linear relationship under the influence of external conditions.
假设向跟踪微分器输入的飞行器的期望姿态值为V,跟踪微分器经过处理后输出的是期望姿态角X
1及期望姿态角的微分值X
2;状态观测器获取的是飞行器的当前姿态值y(k),对当前姿态值y(k)进行观测,分别输出 当前姿态值的姿态反馈值,包括观测姿态值Z
1、观测姿态微分值Z
2、当前飞行器的扰动反馈值Z
3这三个分量,其中观测姿态值Z
1和观测姿态微分值Z
2可以作为状态反馈值;将跟踪微分器输出的X
1、X
2,与状态观测器的两个状态反馈值相减,得到两个误差值即姿态误差值和姿态微分误差值,并输入到非线性控制器中;非线性控制器根据姿态误差值和姿态微分误差值进行处理,输出第一控制值u
0;最后,将再减去状态观测器的扰动反馈值Z
3,得到最后的第二控制值u作为控制量输出给飞行器电机进行飞行控制。
Assuming that the desired attitude value of the aircraft input to the tracking differentiator is V, the tracking differentiator outputs the desired attitude angle X 1 and the differential value X 2 of the desired attitude angle after processing; the state observer obtains the current attitude value of the aircraft y(k), observe the current attitude value y(k), and output the attitude feedback value of the current attitude value, including the observation attitude value Z 1 , the observation attitude differential value Z 2 , and the disturbance feedback value Z 3 of the current aircraft. The observation attitude value Z 1 and the observation attitude differential value Z 2 can be used as state feedback values; the X 1 and X 2 output by the tracking differentiator are subtracted from the two state feedback values of the state observer to obtain two The error values are the attitude error value and the attitude differential error value, and are input into the nonlinear controller; the nonlinear controller processes according to the attitude error value and the attitude differential error value, and outputs the first control value u 0 ; From the disturbance feedback value Z 3 of the state observer, the final second control value u is obtained as a control quantity and output to the aircraft motor for flight control.
参见图3,该方法包括:Referring to Figure 3, the method includes:
在步骤S301中,向跟踪微分器输入飞行器的期望姿态值,由跟踪微分器对期望姿态值进行处理,得到期望姿态角及期望姿态角的微分值。In step S301, the expected attitude value of the aircraft is input to the tracking differentiator, and the expected attitude value is processed by the tracking differentiator to obtain the desired attitude angle and the differential value of the desired attitude angle.
其中,跟踪微分器使用最速控制综合函数,对输入的飞行器的期望姿态值按第一预设算法进行处理,输出期望姿态角及期望姿态角的微分值。The tracking differentiator uses the fastest control comprehensive function to process the input expected attitude value of the aircraft according to the first preset algorithm, and outputs the expected attitude angle and the differential value of the expected attitude angle.
在飞行器的飞行过程中,姿态指的是当前飞行器的飞行姿态。姿态其实也就是飞行器坐标系和地理坐标系的一种关系。飞行器坐标系中,一般是X轴为飞行器机翼的方向,Y轴为机头的方向,Z轴垂直于飞行器,这个坐标系是随着飞行器姿态改变而变动。飞行姿态可通过姿态角体现,姿态角是指飞行器坐标系和地理坐标系之间的夹角,可用横滚角(roll)、俯仰角(pitch)、偏航角(yaw)三个角表示。其中,横滚角:飞行器对称平面与通过飞行器机体纵轴的铅垂平面间的夹角,右滚为正;俯仰角:机体轴与地平面(水平面)之间的夹角,飞行器抬头为正;偏航角:机体轴在水平面上的投影与地轴之间的夹角,以飞行器右偏为正。During the flight of the aircraft, the attitude refers to the current flight attitude of the aircraft. Attitude is actually a relationship between the aircraft coordinate system and the geographic coordinate system. In the aircraft coordinate system, the X axis is generally the direction of the aircraft wing, the Y axis is the direction of the nose, and the Z axis is perpendicular to the aircraft. This coordinate system changes with the attitude of the aircraft. The flight attitude can be represented by the attitude angle, which refers to the angle between the aircraft coordinate system and the geographic coordinate system, which can be represented by three angles: roll, pitch, and yaw. Among them, the roll angle: the angle between the plane of symmetry of the aircraft and the vertical plane passing through the longitudinal axis of the aircraft body, the right roll is positive; the pitch angle: the angle between the body axis and the ground plane (horizontal plane), the head of the aircraft is positive ;Yaw angle: the angle between the projection of the body axis on the horizontal plane and the ground axis, with the right deviation of the aircraft as positive.
跟踪微分器的输入为飞行器的期望姿态值,期望姿态值可以来源于驾驶员的操控输入但不局限于此。当没有驾驶员或没有操控时,期望姿态值中的横滚角和俯仰角的期望值为0,偏航角的期望值为当前航向角(即保持飞行器水平且锁定当前航向的航向角度)。The input of the tracking differentiator is the expected attitude value of the aircraft, and the expected attitude value may be derived from the pilot's manipulation input but is not limited thereto. When there is no pilot or no control, the expected value of the roll angle and pitch angle in the expected attitude value is 0, and the expected value of the yaw angle is the current heading angle (that is, the heading angle to keep the aircraft level and lock the current heading).
跟踪微分器可以使用最速控制综合函数fhan函数进行处理。假设向跟踪微分器输入的飞行器的期望姿态值为V(k),跟踪微分器按第一预设算 法进行处理后输出的是期望姿态角X
1及期望姿态角的微分值X
2。
Tracking differentiators can be processed using the fastest control synthesis function fhan function. Assuming that the expected attitude value of the aircraft input to the tracking differentiator is V(k), the tracking differentiator outputs the expected attitude angle X 1 and the differential value X 2 of the expected attitude angle after processing according to the first preset algorithm.
第一预设算法的相关公式如下所示:The relevant formula of the first preset algorithm is as follows:
fh=fhan(X
1(k)-V(k),X
2(k),r,h)
fh=fhan(X 1 (k)-V(k),X 2 (k),r,h)
X
1(k+1)=X
1(k)+h*X
2(k)
X 1 (k+1)=X 1 (k)+h*X 2 (k)
X
2(k+1)=X
2(k)+h*fh
X 2 (k+1)=X 2 (k)+h*fh
上述公式中,X
1(k)表示k时刻的期望姿态角,X
2(k)表示k时刻的期望姿态角的微分值,X
1(k+1)表示k+1时刻的期望姿态角,X
2(k+1)表示k+1时刻的期望姿态角的微分值,V(k)表示k时刻输入的期望姿态值,r表示决定跟踪速度的速度因子,h表示时间步长,fh表示输入数据的二阶微分。fhan函数称为最速控制综合函数,该函数可以参见相关技术的计算方法,本申请对此不加以限定。
In the above formula, X 1 (k) represents the desired attitude angle at time k, X 2 (k) represents the differential value of the desired attitude angle at time k, X 1 (k+1) represents the desired attitude angle at time k+1, X 2 (k+1) represents the differential value of the desired attitude angle at time k+1, V(k) represents the expected attitude value input at time k, r represents the speed factor that determines the tracking speed, h represents the time step, and fh represents Second derivative of the input data. The fhan function is called the fastest control synthesis function, and reference may be made to the calculation method of the related art for this function, which is not limited in this application.
本申请中,设置跟踪微分器进行处理的主要目的是为了安排一个过渡过程,也就是安排闭环系统的过渡过程,让期望角度值不再是采用PID控制算法直接输入到控制系统中,因为如果采用PID控制算法直接输入到控制系统中,很容易产生过冲(指输出超过了它的最终稳态值)和超调(指超过给定值)的问题。In this application, the main purpose of setting the tracking differentiator for processing is to arrange a transition process, that is, to arrange the transition process of the closed-loop system, so that the desired angle value is no longer directly input into the control system by using the PID control algorithm, because if the The PID control algorithm is directly input into the control system, which is prone to overshoot (meaning that the output exceeds its final steady-state value) and overshoot (meaning exceeding a given value).
在步骤S302中,由状态观测器获取飞行器的当前姿态值进行处理,得到观测姿态值、观测姿态微分值和当前飞行器的扰动反馈值。In step S302, the current attitude value of the aircraft is acquired by the state observer for processing, and the observed attitude value, the differential value of the observed attitude and the current disturbance feedback value of the aircraft are obtained.
其中,状态观测器对获取的飞行器的当前姿态值按第二预设算法进行处理,得到观测姿态值、观测姿态微分值、当前飞行器的扰动反馈值。The state observer processes the acquired current attitude value of the aircraft according to the second preset algorithm, and obtains the observation attitude value, the observation attitude differential value, and the disturbance feedback value of the current aircraft.
状态观测器对当前输入的飞行器当前姿态值y(k)进行观测,估计出系统状态值和扰动分量。因为各种干扰例如外部干扰的存在,导致输入的当前姿态值中可能存在扰动噪声,按第二预设算法进行运算后,可以得到Z
1、Z
2和Z
3三个分量,即三个姿态反馈值,其中Z
1表示观测器观测出来的观测姿态值(相比输入的姿态值,该观测姿态值滤除了一部分扰动噪声),Z
2表示观测出来的观测姿态微分值,Z
3则代表外部的扰动分量即当前飞行器的扰动反馈值。
The state observer observes the current input attitude value y(k) of the aircraft, and estimates the system state value and disturbance component. Due to the existence of various disturbances such as external disturbances, there may be disturbance noise in the input current attitude value. After the operation is performed according to the second preset algorithm, three components Z 1 , Z 2 and Z 3 can be obtained, that is, three attitudes Feedback value, where Z 1 represents the observation attitude value observed by the observer (compared to the input attitude value, the observation attitude value filters out a part of the disturbance noise), Z 2 represents the observed observation attitude differential value, and Z 3 represents the external The disturbance component of is the disturbance feedback value of the current aircraft.
第二预设算法的相关公式如下所示:The relevant formula of the second preset algorithm is as follows:
ε=Z
1(k)-y(k)
ε=Z 1 (k)-y(k)
Z
1(k+1)=Z
1(k)+h*[Z
2(k)-β
01*ε]
Z 1 (k+1)=Z 1 (k)+h*[Z 2 (k)-β 01 *ε]
上述公式中,其中ε示k时刻姿态值的误差,y(k)表示当前k时刻输入的飞行器当前姿态值,Z
1(k)表示k时刻观测器观测出来的观测姿态值(相比输入的姿态值,该观测姿态值滤除了一部分扰动噪声),Z
2(k)表示k时刻观测出来的观测姿态微分值,Z
3(k)表示k时刻外部的扰动分量即当前飞行器的扰动反馈值,Z
1(k+1)表示k+1时刻观测器观测出来的观测姿态值,Z
2(k+1)表示k+1时刻观测出来的观测姿态微分值,Z
3(k+1)表示k+1时刻外部的扰动分量即当前飞行器的扰动反馈值,h表示时间步长,β
01代表角度增益系数、β
02代表角速度增益系数,β
03代表角加速度增益系数,δ表示fal滤波函数的滤波因子,b
0是补偿因子,u表示表示上一次的控制量(控制值),fal是一种非线性滤波函数。其中,滤波因子和补偿因子可以根据实际需要取经验值。
In the above formula, ε represents the error of the attitude value at time k, y(k) represents the current attitude value of the aircraft input at the current time k, and Z 1 (k) represents the observed attitude value observed by the observer at time k (compared to the input Attitude value, this observation attitude value filters out part of the disturbance noise), Z 2 (k) represents the observed attitude differential value observed at time k, Z 3 (k) represents the external disturbance component at time k, that is, the disturbance feedback value of the current aircraft, Z 1 (k+1) represents the observation attitude value observed by the observer at time k+1, Z 2 (k+1) represents the differential value of the observation attitude observed at time k+1, and Z 3 (k+1) represents k The external disturbance component at time +1 is the disturbance feedback value of the current aircraft, h represents the time step, β 01 represents the angle gain coefficient, β 02 represents the angular velocity gain coefficient, β 03 represents the angular acceleration gain coefficient, and δ represents the filtering of the fal filter function. factor, b 0 is a compensation factor, u represents the last control amount (control value), and fal is a nonlinear filter function. Among them, the filtering factor and the compensation factor can be empirical values according to actual needs.
在步骤S303中,根据期望姿态角与观测姿态值计算姿态误差值;根据期望姿态角的微分值与观测姿态微分值计算姿态微分误差值。In step S303, the attitude error value is calculated according to the expected attitude angle and the observed attitude value; the attitude differential error value is calculated according to the differential value of the expected attitude angle and the observed attitude differential value.
其中,可以将期望姿态角与观测姿态值相减,得到姿态误差值;将期望姿态角的微分值与观测姿态微分值相减,得到姿态微分误差值。Among them, the expected attitude angle and the observed attitude value can be subtracted to obtain the attitude error value; the differential value of the expected attitude angle and the observed attitude differential value can be subtracted to obtain the attitude differential error value.
将跟踪微分器输出的期望姿态角X
1及期望姿态角的微分值X
2,与状态观测器的两个状态反馈值Z
1、Z
2相减,得到两个误差值e
1和e
2,输入到非线性控制器中。
The desired attitude angle X 1 output by the tracking differentiator and the differential value X 2 of the desired attitude angle are subtracted from the two state feedback values Z 1 and Z 2 of the state observer to obtain two error values e 1 and e 2 , into the nonlinear controller.
非线性控制器计算姿态误差值的公式如下所示:The formula for the nonlinear controller to calculate the attitude error value is as follows:
e
1=X
1-Z
1
e 1 =X 1 -Z 1
e
2=X
2-Z
2
e 2 =X 2 -Z 2
在步骤S304中,通过非线性控制器对姿态误差值和姿态微分误差值进行处理,输出控制飞行姿态的第一控制值。In step S304, the attitude error value and the attitude differential error value are processed by the nonlinear controller, and the first control value for controlling the flight attitude is output.
其中,非线性控制器对姿态误差值e
1和姿态微分误差值e
2按第三预设 算法进行处理,输出控制飞行姿态的第一控制值。
The nonlinear controller processes the attitude error value e 1 and the attitude differential error value e 2 according to a third preset algorithm, and outputs a first control value for controlling the flight attitude.
姿态误差值输入到非线性控制器之后,非线性控制器进行相关运算,输出控制量即第一控制值u
0,第三预设算法相关公式如下:
After the attitude error value is input to the nonlinear controller, the nonlinear controller performs related operations, and the output control value is the first control value u 0 . The relevant formula of the third preset algorithm is as follows:
u
0=β
1*fal(e
1,a
1,δ)+β
2*fal(e
2,a
2,δ)
u 0 =β 1 *fal(e 1 ,a 1 ,δ)+β 2 *fal(e 2 ,a 2 ,δ)
上述公式中,β
1和β
2分别代表角度反馈增益和角速度反馈增益,a
1和a
2是两个fal函数的跟踪因子,δ表示fal滤波函数的滤波因子,fal是一种非线性滤波函数,e
1是姿态误差值,e
2是姿态微分误差值。滤波算法通常可以使用卡尔曼滤波或互补滤波等。通过增加滤波因子可防止滤波时出现震荡。
In the above formula, β 1 and β 2 represent the angle feedback gain and angular velocity feedback gain respectively, a 1 and a 2 are the tracking factors of the two fal functions, δ represents the filter factor of the fal filter function, and fal is a nonlinear filter function , e 1 is the attitude error value, and e 2 is the attitude differential error value. The filtering algorithm can usually use Kalman filtering or complementary filtering, etc. Oscillation during filtering can be prevented by increasing the filter factor.
在步骤S305中,根据第一控制值与当前飞行器的扰动反馈值进行运算,向飞行器电机输出控制飞行姿态的第二控制值。In step S305, an operation is performed according to the first control value and the current disturbance feedback value of the aircraft, and a second control value for controlling the flight attitude is output to the aircraft motor.
其中,可以将第一控制值与当前飞行器的扰动反馈值相减,输出控制飞行姿态的第二控制值传输给飞行器电机以控制飞行器的飞行姿态,例如传输给飞行器电机中的电机控制器,使得电机控制器可以根据第二控制值控制电机的转速,从而控制飞行器的飞行姿态。Wherein, the first control value can be subtracted from the disturbance feedback value of the current aircraft, and the second control value that controls the flight attitude can be output and transmitted to the aircraft motor to control the flight attitude of the aircraft, for example, to the motor controller in the aircraft motor, so that The motor controller may control the rotational speed of the motor according to the second control value, thereby controlling the flight attitude of the aircraft.
将输出的第一控制值u
0,再减去状态观测器的扰动反馈值Z
3,得到最后的控制量即第二控制值u。其中第一控制值u
0再减去状态观测器的扰动反馈值Z
3之后,可以与补偿因子b
0相除,再得到最后的控制量即第二控制值u。
The output first control value u 0 is then subtracted from the disturbance feedback value Z 3 of the state observer to obtain the final control value, that is, the second control value u. The first control value u 0 can be divided by the compensation factor b 0 after subtracting the disturbance feedback value Z 3 of the state observer to obtain the final control value, that is, the second control value u.
相关公式如下:The relevant formula is as follows:
上述公式中,b
0表示补偿因子,补偿因子可以根据实际需要取经验值。
In the above formula, b 0 represents the compensation factor, and the compensation factor can be an empirical value according to actual needs.
最后,将控制量即第二控制值u最终输出到飞行器的电机控制器上,由电机控制器根据第二控制值u控制电机的转速,从而控制飞行器的飞行姿态,就可以实现对载人飞行器的飞行姿态的平稳控制。Finally, the control quantity, that is, the second control value u, is finally output to the motor controller of the aircraft, and the motor controller controls the rotation speed of the motor according to the second control value u, thereby controlling the flight attitude of the aircraft, and the manned aircraft can be realized. smooth control of the flight attitude.
综上所描述,本申请方案具有以下有益效果:To sum up, the solution of the present application has the following beneficial effects:
1)相关技术中如果期望姿态值与当前实际姿态值之间存在较大偏差,使用PID控制很容易产生过冲(指输出超过了它的最终稳态值)和 超调(指超过给定值)的问题,而本申请方案通过跟踪微分器的处理,设置了一个过渡过程,让期望姿态值的输入更加平缓,有了一个过渡过程后,就可以在基本无超调的前提下实现对期望姿态值的快速跟踪,并且结合状态观测器和非线性控制器对设定误差值进行处理,可以比较稳定输出控制飞行姿态的控制值,从而使得控制系统具有较好的自抗干扰能力,提高载人飞行器飞行稳定性。1) In the related art, if there is a large deviation between the expected attitude value and the current actual attitude value, it is easy to generate overshoot (referring to the output exceeding its final steady state value) and overshoot (referring to exceeding the given value) using PID control. ) problem, and the solution of this application sets up a transition process by tracking the processing of the differentiator to make the input of the desired attitude value smoother. The fast tracking of the attitude value, combined with the state observer and the nonlinear controller to process the set error value, can relatively stably output the control value of the flight attitude control, so that the control system has a better anti-interference ability and improves the load. Human aircraft flight stability.
2)本申请的方案,通过状态观测器能够实时观测未知的外部扰动,反馈出扰动分量即扰动反馈值,最后在控制器输出部分再减去该扰动分量,即可消除外部扰动,进一步增强飞行姿态的稳定性。2) In the solution of this application, an unknown external disturbance can be observed in real time through the state observer, and the disturbance component, that is, the disturbance feedback value, can be fed back. Finally, the disturbance component is subtracted from the output part of the controller to eliminate the external disturbance and further enhance the flight. Postural stability.
可见,本申请的方案与市面上常用的载人飞行器控制方法有所不同,本申请提出的控制方案可以有效地去除外部因素对飞行器的干扰,当面临突发极端环境和天气时,也可以保障飞行器例如载人飞行器安全稳定地飞行。It can be seen that the scheme of this application is different from the control methods of manned aircraft commonly used in the market. The control scheme proposed in this application can effectively remove the interference of external factors on the aircraft, and can also guarantee the Aircraft such as manned aircraft fly safely and stably.
上述详细描述了本申请的载人飞行器飞行姿态控制方法,相应的,本申请还提供一种飞行姿态控制系统、载人飞行器及相关设备。The above describes in detail the flight attitude control method of the manned aircraft of the present application. Correspondingly, the present application also provides a flight attitude control system, a manned aircraft and related equipment.
图5是本申请实施例示出的飞行姿态控制系统的结构示意图。FIG. 5 is a schematic structural diagram of a flight attitude control system shown in an embodiment of the present application.
参见图5,本申请提供的飞行姿态控制系统50,包括:跟踪微分器51、状态观测器52、非线性控制器53。Referring to FIG. 5 , the flight attitude control system 50 provided by the present application includes: a tracking differentiator 51 , a state observer 52 , and a nonlinear controller 53 .
跟踪微分器51,用于对输入的飞行器的期望姿态值进行处理,得到期望姿态值的微分参数值。The tracking differentiator 51 is used for processing the input expected attitude value of the aircraft to obtain the differential parameter value of the expected attitude value.
状态观测器52,用于对获取的飞行器的当前姿态值进行处理,得到当前姿态值的姿态反馈值。The state observer 52 is configured to process the acquired current attitude value of the aircraft to obtain an attitude feedback value of the current attitude value.
非线性控制器53,用于对设定误差值进行处理,输出控制飞行姿态的第一控制值以控制飞行器的飞行姿态,其中设定误差值根据跟踪微分器51得到的期望姿态值的微分参数值与状态观测器52得到的当前姿态值的姿态反馈值进行运算得到。The nonlinear controller 53 is used to process the set error value and output the first control value for controlling the flight attitude to control the flight attitude of the aircraft, wherein the set error value is based on the differential parameter of the desired attitude value obtained by the tracking differentiator 51 The value is obtained by operation with the attitude feedback value of the current attitude value obtained by the state observer 52 .
在一种实施方式中,飞行姿态控制系统50还可以包括:调整模块54。In one embodiment, the flight attitude control system 50 may further include: an adjustment module 54 .
调整模块54,用于根据非线性控制器53输出的第一控制值与状态观测器52得到的当前姿态值的姿态反馈值进行运算,输出控制飞行姿态的 第二控制值以控制飞行器的飞行姿态。The adjustment module 54 is used for calculating according to the first control value output by the nonlinear controller 53 and the attitude feedback value of the current attitude value obtained by the state observer 52, and outputs the second control value for controlling the flight attitude to control the flight attitude of the aircraft .
在一种实施方式中,跟踪微分器51使用最速控制综合函数,对输入的飞行器的期望姿态值按第一预设算法进行处理,输出期望姿态角及期望姿态角的微分值。In one embodiment, the tracking differentiator 51 uses the fastest control synthesis function to process the input expected attitude value of the aircraft according to the first preset algorithm, and outputs the expected attitude angle and the differential value of the expected attitude angle.
第一预设算法的相关公式如下所示:The relevant formula of the first preset algorithm is as follows:
fh=fhan(X
1(k)-V(k),X
2(k),r,h)
fh=fhan(X 1 (k)-V(k),X 2 (k),r,h)
X
1(k+1)=X
1(k)+h*X
2(k)
X 1 (k+1)=X 1 (k)+h*X 2 (k)
X
2(k+1)=X
2(k)+h*fh
X 2 (k+1)=X 2 (k)+h*fh
上述公式中,X
1(k)表示k时刻的期望姿态角,X
2(k)表示k时刻的期望姿态角的微分值,X
1(k+1)表示k+1时刻的期望姿态角,X
2(k+1)表示k+1时刻的期望姿态角的微分值,V(k)表示k时刻输入的期望姿态值,r表示决定跟踪速度的速度因子,h表示时间步长,fh表示输入数据的二阶微分。fhan函数称为最速控制综合函数,该函数可以参见相关技术的计算方法,本申请对此不加以限定。
In the above formula, X 1 (k) represents the desired attitude angle at time k, X 2 (k) represents the differential value of the desired attitude angle at time k, X 1 (k+1) represents the desired attitude angle at time k+1, X 2 (k+1) represents the differential value of the desired attitude angle at time k+1, V(k) represents the expected attitude value input at time k, r represents the speed factor that determines the tracking speed, h represents the time step, and fh represents Second derivative of the input data. The fhan function is called the fastest control synthesis function, and reference may be made to the calculation method of the related art for this function, which is not limited in this application.
状态观测器52对获取的飞行器的当前姿态值按第二预设算法进行处理,得到观测姿态值、观测姿态微分值、当前飞行器的扰动反馈值。The state observer 52 processes the acquired current attitude value of the aircraft according to the second preset algorithm, and obtains the observed attitude value, the differential value of the observed attitude, and the disturbance feedback value of the current aircraft.
第二预设算法的相关公式如下所示:The relevant formula of the second preset algorithm is as follows:
ε=Z
1(k)-y(k)
ε=Z 1 (k)-y(k)
Z
1(k+1)=Z
1(k)+h*[Z
2(k)-β
01*ε]
Z 1 (k+1)=Z 1 (k)+h*[Z 2 (k)-β 01 *ε]
上述公式中,其中ε示k时刻姿态值的误差,y(k)表示当前k时刻输入的飞行器当前姿态值,Z
1(k)表示k时刻观测器观测出来的观测姿态值(相比输入的姿态值,该观测姿态值滤除了一部分扰动噪声),Z
2(k)表示k时刻观测出来的观测姿态微分值,Z
3(k)表示k时刻外部的扰动分量即当前飞行器的扰动反馈值,Z
1(k+1)表示k+1时刻观测器观测出来的观测姿态值,Z
2(k+1)表示k+1时刻观测出来的观测姿态微分值,Z
3(k+1)表 示k+1时刻外部的扰动分量即当前飞行器的扰动反馈值,h表示时间步长,β
01代表角度增益系数、β
02代表角速度增益系数,β
03代表角加速度增益系数,δ表示fal滤波函数的滤波因子,b
0是补偿因子,u表示表示上一次的控制量(控制值),fal是一种非线性滤波函数。
In the above formula, ε represents the error of the attitude value at time k, y(k) represents the current attitude value of the aircraft input at the current time k, and Z 1 (k) represents the observed attitude value observed by the observer at time k (compared to the input Attitude value, this observation attitude value filters out part of the disturbance noise), Z 2 (k) represents the observed attitude differential value observed at time k, Z 3 (k) represents the external disturbance component at time k, that is, the disturbance feedback value of the current aircraft, Z 1 (k+1) represents the observation attitude value observed by the observer at time k+1, Z 2 (k+1) represents the differential value of the observation attitude observed at time k+1, and Z 3 (k+1) represents k The external disturbance component at time +1 is the disturbance feedback value of the current aircraft, h represents the time step, β 01 represents the angle gain coefficient, β 02 represents the angular velocity gain coefficient, β 03 represents the angular acceleration gain coefficient, and δ represents the filtering of the fal filter function. factor, b 0 is a compensation factor, u represents the last control amount (control value), and fal is a nonlinear filter function.
非线性控制器53对姿态误差值和姿态微分误差值按第三预设算法进行处理,输出控制飞行姿态的第一控制值以控制飞行器的飞行姿态,其中将期望姿态角与观测姿态值相减,得到姿态误差值,将期望姿态角的微分值与观测姿态微分值相减,得到姿态微分误差值。The nonlinear controller 53 processes the attitude error value and the attitude differential error value according to a third preset algorithm, and outputs a first control value for controlling the flight attitude to control the flight attitude of the aircraft, wherein the desired attitude angle is subtracted from the observed attitude value. , get the attitude error value, and subtract the differential value of the desired attitude angle from the observed attitude differential value to obtain the attitude differential error value.
非线性控制器计算姿态误差值的公式如下所示:The formula for the nonlinear controller to calculate the attitude error value is as follows:
e
1=X
1-Z
1
e 1 =X 1 -Z 1
e
2=X
2-Z
2
e 2 =X 2 -Z 2
第三预设算法相关公式如下:The relevant formula of the third preset algorithm is as follows:
u
0=β
1*fal(e
1,a
1,δ)+β
2*fal(e
2,a
2,δ)
u 0 =β 1 *fal(e 1 ,a 1 ,δ)+β 2 *fal(e 2 ,a 2 ,δ)
上述公式中,β
1和β
2分别代表角度反馈增益和角速度反馈增益,a
1和a
2是两个fal函数的跟踪因子,δ表示fal滤波函数的滤波因子,fal是一种非线性滤波函数。滤波算法通常可以使用卡尔曼滤波或互补滤波等。通过增加滤波因子可防止滤波时出现震荡。
In the above formula, β 1 and β 2 represent the angle feedback gain and angular velocity feedback gain respectively, a 1 and a 2 are the tracking factors of the two fal functions, δ represents the filter factor of the fal filter function, and fal is a nonlinear filter function . The filtering algorithm can usually use Kalman filtering or complementary filtering, etc. Oscillation during filtering can be prevented by increasing the filter factor.
在一种实施方式中,调整模块54将非线性控制器输出的第一控制值与与状态观测器得到的当前飞行器的扰动反馈值相减,输出控制飞行姿态的第二控制值以控制飞行器的飞行姿态。In one embodiment, the adjustment module 54 subtracts the first control value output by the nonlinear controller and the current disturbance feedback value of the aircraft obtained by the state observer, and outputs the second control value for controlling the flight attitude to control the aircraft's flight attitude.
相关公式如下:The relevant formula is as follows:
上述公式中,b
0表示补偿因子,补偿因子可以根据实际需要取经验值。
In the above formula, b 0 represents the compensation factor, and the compensation factor can be an empirical value according to actual needs.
最后,将控制量即第二控制值u最终输出到飞行器的电机控制器上,由电机控制器根据第二控制值u控制电机的转速,从而控制飞行器的飞行姿态,就可以实现对载人飞行器的飞行姿态的平稳控制。Finally, the control quantity, that is, the second control value u, is finally output to the motor controller of the aircraft, and the motor controller controls the rotation speed of the motor according to the second control value u, thereby controlling the flight attitude of the aircraft, and the manned aircraft can be realized. smooth control of the flight attitude.
本申请还提供一种载人飞行器,包括上述的飞行姿态控制系统50,飞行姿态控制系统50的结构可以参见图5中的描述,此处不再赘述。The present application also provides a manned aircraft, including the above-mentioned flight attitude control system 50 . The structure of the flight attitude control system 50 can be referred to the description in FIG. 5 , which will not be repeated here.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不再做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.
图6是本申请实施例示出的电子设备的结构示意图。该电子设备例如可以是控制系统设备等。FIG. 6 is a schematic structural diagram of an electronic device shown in an embodiment of the present application. The electronic device may be, for example, a control system device or the like.
参见图6,电子设备600包括存储器610和处理器620。Referring to FIG. 6 , an electronic device 600 includes a memory 610 and a processor 620 .
处理器620可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 620 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (Application Specific Integrated Circuits, ASICs), field-available processors. Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
存储器610可以包括各种类型的存储单元,例如系统内存、只读存储器(ROM),和永久存储装置。其中,ROM可以存储处理器620或者计算机的其他模块需要的静态数据或者指令。永久存储装置可以是可读写的存储装置。永久存储装置可以是即使计算机断电后也不会失去存储的指令和数据的非易失性存储设备。在一些实施方式中,永久性存储装置采用大容量存储装置(例如磁或光盘、闪存)作为永久存储装置。另外一些实施方式中,永久性存储装置可以是可移除的存储设备(例如软盘、光驱)。系统内存可以是可读写存储设备或者易失性可读写存储设备,例如动态随机访问内存。系统内存可以存储一些或者所有处理器在运行时需要的指令和数据。此外,存储器610可以包括任意计算机可读存储媒介的组合,包括各种类型的半导体存储芯片(DRAM,SRAM,SDRAM,闪存,可编程只读存储器),磁盘和/或光盘也可以采用。在一些实施方式中,存储器610可以包括可读和/或写的可移除的存储设备,例如激光唱片(CD)、只读数字多功能光盘(例如DVD-ROM,双层DVD-ROM)、只读蓝光光盘、超密度光盘、闪存卡(例如SD卡、min SD卡、Micro-SD卡等等)、磁性软盘等等。计算机可读存储媒介不包含载波和通过无线或有线传输的瞬间电子信号。Memory 610 may include various types of storage units, such as system memory, read only memory (ROM), and persistent storage. The ROM may store static data or instructions required by the processor 620 or other modules of the computer. Persistent storage devices may be readable and writable storage devices. Permanent storage may be a non-volatile storage device that does not lose stored instructions and data even if the computer is powered off. In some embodiments, persistent storage devices employ mass storage devices (eg, magnetic or optical disks, flash memory) as persistent storage devices. In other embodiments, persistent storage may be a removable storage device (eg, a floppy disk, an optical drive). System memory can be a readable and writable storage device or a volatile readable and writable storage device, such as dynamic random access memory. System memory can store some or all of the instructions and data that the processor needs at runtime. Additionally, memory 610 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and magnetic and/or optical disks may also be employed. In some embodiments, memory 610 may include a removable storage device that is readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, DVD-ROM, dual-layer DVD-ROM), Read-only Blu-ray Discs, Ultra-Density Discs, Flash Cards (eg SD Cards, Min SD Cards, Micro-SD Cards, etc.), Magnetic Floppy Disks, etc. Computer-readable storage media do not contain carrier waves and transient electronic signals transmitted over wireless or wireline.
存储器610上存储有可执行代码,当可执行代码被处理器620处理 时,可以使处理器620执行上文述及的方法中的部分或全部。Executable code is stored on the memory 610, and when the executable code is processed by the processor 620, the processor 620 can be caused to perform some or all of the above-mentioned methods.
上文中已经参考附图详细描述了本申请的方案。在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。本领域技术人员也应该知悉,说明书中所涉及的动作和模块并不一定是本申请所必须的。另外,可以理解,本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减,本申请实施例装置中的模块可以根据实际需要进行合并、划分和删减。The solution of the present application has been described in detail above with reference to the accompanying drawings. In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required by the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined and deleted according to actual needs, and the modules in the device of the embodiment of the present application may be combined, divided and deleted according to actual needs.
此外,根据本申请的方法还可以实现为一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品包括用于执行本申请的上述方法中部分或全部步骤的计算机程序代码指令。Furthermore, the method according to the present application can also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps in the above method of the present application.
或者,本申请还可以实施为一种非暂时性机器可读存储介质(或计算机可读存储介质、或机器可读存储介质),其上存储有可执行代码(或计算机程序、或计算机指令代码),当所述可执行代码(或计算机程序、或计算机指令代码)被电子设备(或电子设备、服务器等)的处理器执行时,使所述处理器执行根据本申请的上述方法的各个步骤的部分或全部。Alternatively, the present application can also be implemented as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable codes (or computer programs, or computer instruction codes are stored) ), when the executable code (or computer program, or computer instruction code) is executed by the processor of the electronic device (or electronic device, server, etc.), the processor is caused to execute each step of the above-mentioned method according to the present application part or all of it.
本领域技术人员还将明白的是,结合这里的申请所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。Those skilled in the art will also appreciate that the various exemplary logical blocks, modules, circuits, and algorithm steps described in connection with the applications herein may be implemented as electronic hardware, computer software, or combinations of both.
附图中的流程图和框图显示了根据本申请的多个实施例的系统和方法的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标记的功能也可以以不同于附图中所标记的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于 硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present application have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.