CN116301023A - Aircraft trajectory tracking method and device based on data-driven model predictive control - Google Patents

Aircraft trajectory tracking method and device based on data-driven model predictive control Download PDF

Info

Publication number
CN116301023A
CN116301023A CN202310040320.9A CN202310040320A CN116301023A CN 116301023 A CN116301023 A CN 116301023A CN 202310040320 A CN202310040320 A CN 202310040320A CN 116301023 A CN116301023 A CN 116301023A
Authority
CN
China
Prior art keywords
aircraft
data
flight
model predictive
roll angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310040320.9A
Other languages
Chinese (zh)
Inventor
谢芳芳
於怿丰
陆宇峰
季廷炜
杜昌平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN202310040320.9A priority Critical patent/CN116301023A/en
Publication of CN116301023A publication Critical patent/CN116301023A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft
    • G05D1/106Change initiated in response to external conditions, e.g. avoidance of elevated terrain or of no-fly zones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

本发明提供一种基于数据驱动模型预测控制的飞行器轨迹跟踪方法及装置。本发明首先在飞行器飞行过程中实时捕获最新的飞行器状态响应数据,利用数据驱动模型预测控制器最优化求解得到的下一时刻的期望滚转角参考信号作为飞行器的飞控的输入,实现飞行器的平面横向轨迹跟踪;同时依据实时捕获并存储的飞行器状态响应数据在线辨识、动态调整数据驱动模型预测控制器所用模型参量。本发明能够在飞行器飞行过程中实时捕获最新响应数据,并在线辨识、动态调整模型预测控制器所用的模型参量,以提高不同环境工况下飞行器的飞行鲁棒性。基于数据驱动的模型预测控制方法,可以充分利用被控系统的输入输出数据,增强控制器对系统的自适应能力。

Figure 202310040320

The invention provides an aircraft trajectory tracking method and device based on data-driven model predictive control. The present invention first captures the latest aircraft state response data in real time during the flight of the aircraft, and uses the data-driven model predictive controller to optimize and solve the expected roll angle reference signal at the next moment as the input of the flight control of the aircraft to realize the plane of the aircraft. Horizontal trajectory tracking; at the same time, based on the real-time captured and stored aircraft state response data, online identification and dynamic adjustment of the model parameters used by the data-driven model predictive controller. The invention can capture the latest response data in real time during the flight of the aircraft, and identify and dynamically adjust the model parameters used by the model predictive controller on-line, so as to improve the flight robustness of the aircraft under different environmental working conditions. Based on the data-driven model predictive control method, the input and output data of the controlled system can be fully utilized to enhance the controller's ability to adapt to the system.

Figure 202310040320

Description

基于数据驱动模型预测控制的飞行器轨迹跟踪方法及装置Aircraft trajectory tracking method and device based on data-driven model predictive control

技术领域technical field

本发明涉及飞行器轨迹跟踪领域,尤其涉及一种基于数据驱动模型预测控制的飞行器轨迹跟踪方法及装置。The invention relates to the field of aircraft trajectory tracking, in particular to an aircraft trajectory tracking method and device based on data-driven model predictive control.

背景技术Background technique

得益于终端设备计算能力的提升,模型预测控制已经成为工业界比较常见的控制策略之一。其原理在于利用数学模型,根据当前时刻系统状态以及控制输入预测未来输出,并求解得到未来的最优控制序列,不断反复该过程进行滚动优化。其特征包括:可处理多变量控制问题,可处理输入输出物理约束,可适应结构变化等。作为实时控制领域中应用广泛的控制算法,模型预测控制在许多情况下拥有着接近最优的控制效果。Thanks to the improvement of the computing power of terminal equipment, model predictive control has become one of the more common control strategies in the industry. The principle is to use the mathematical model to predict the future output according to the current system state and control input, and solve the optimal control sequence in the future, and repeat this process continuously for rolling optimization. Its characteristics include: it can deal with multivariable control problems, it can deal with input and output physical constraints, it can adapt to structural changes, etc. As a widely used control algorithm in the field of real-time control, model predictive control has close to optimal control effect in many cases.

随着具备低成本、小体积、易机动等优势的无人飞行器在军民领域的应用愈发广泛,人们对飞行控制器的自主控制能力提出了更高的要求,国内外的飞控系统设计中模型预测控制技术出现的频率逐年攀升。然而,在已有的相关研究结果中,人们的做法总是仅对被控系统进行单次系统参数识别,而后将得到的模型作为该系统的固有属性不再更改,但飞行器系统在执行飞行任务的过程中,可能需要面临多变的飞行环境:在不同的工况条件下,飞行器气动响应参数将出现难以预测的变化,造成飞行器在实际飞行中的气动特性与气动计算预估值或地面风洞试验测量值出现差异,使得基于名义动力学模型设计的控制系统性能退化。因此,为了实现稳定且具备自适应能力的控制算法,需要为传统模型预测控制器提出一种类似于机器学习领域增量训练的思想,并提供模型动态更新的技术框架。With the increasing application of unmanned aerial vehicles with the advantages of low cost, small size, and easy maneuverability in the military and civilian fields, people have put forward higher requirements for the autonomous control capabilities of flight controllers. In the design of flight control systems at home and abroad The frequency of model predictive control technology is increasing year by year. However, in the existing relevant research results, people always only identify the system parameters once for the controlled system, and then take the obtained model as the inherent properties of the system and do not change any more. During the process, it may be necessary to face a changeable flight environment: under different operating conditions, the aerodynamic response parameters of the aircraft will change unpredictably, resulting in the aerodynamic characteristics of the aircraft in actual flight and the estimated value of aerodynamic calculation or ground wind. The difference in the measured values of the hole test degrades the performance of the control system designed based on the nominal dynamic model. Therefore, in order to achieve a stable and adaptive control algorithm, it is necessary to propose an idea similar to incremental training in the field of machine learning for traditional model predictive controllers, and provide a technical framework for dynamic model updates.

发明内容Contents of the invention

本发明的目的是为了解决上述技术问题,提供基于数据驱动模型预测控制的飞行器轨迹跟踪方法及装置。通过预先的飞行任务采集飞行器空气动力学响应特征,使用带控制的稀疏辨识方法识别动力学模型,并根据飞行过程实时数据在线辨识、动态调整模型预测控制器的模型参量,使飞行器更好地完成目标轨迹跟踪任务。本发明可以充分利用被控系统的输入输出数据,增强控制器对系统的自适应能力。The object of the present invention is to solve the above-mentioned technical problems and provide a method and device for tracking aircraft trajectory based on data-driven model predictive control. The aerodynamic response characteristics of the aircraft are collected through pre-flight missions, the dynamic model is identified using the sparse identification method with control, and the model parameters of the model predictive controller are dynamically adjusted according to the real-time data of the flight process, so that the aircraft can complete better Target trajectory tracking task. The invention can make full use of the input and output data of the controlled system, and enhance the self-adaptive ability of the controller to the system.

本发明采用的技术方案如下:The technical scheme that the present invention adopts is as follows:

一种基于数据驱动模型预测控制的飞行器轨迹跟踪方法,该方法为:在飞行器飞行过程中实时捕获并存储最新的飞行器状态响应数据;所述飞行器状态响应数据包含飞行器的北向位置坐标n、东向位置坐标e、偏航角ψg、滚转角φ、滚转率p、横向跟踪误差le与航向跟踪误差ψeAn aircraft trajectory tracking method based on data-driven model predictive control, the method is: capturing and storing the latest aircraft state response data in real time during the flight of the aircraft; the aircraft state response data includes the aircraft's north position coordinates n, east Position coordinate e, yaw angle ψ g , roll angle φ, roll rate p, lateral tracking error l e and heading tracking error ψ e ;

将当前时刻的飞行器状态响应数据作为数据驱动模型预测控制器输入,数据驱动模型预测控制器基于飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程实时连续预测当前时刻之后一时间段内的飞行器状态响应数据,基于预测的当前时刻之后一时间段内的飞行器状态响应数据建立目标函数进行优化,获得最优的下一时刻的期望滚转角参考信号,飞行器依据预测的期望滚转角参考信号执行飞行任务,实现飞行器的平面横向轨迹跟踪;The aircraft state response data at the current moment is used as the input of the data-driven model predictive controller, and the data-driven model predictive controller is based on the aircraft's plane lateral dynamics equation, roll dimension response equation, lateral tracking error and heading tracking error equations to continuously predict the current situation in real time. Based on the aircraft state response data within a period of time after the current moment, the objective function is established based on the predicted aircraft state response data within a period of time after the current moment, and the optimal roll angle reference signal at the next moment is obtained. The expected roll angle reference signal is used to perform the flight mission, and realize the plane lateral trajectory tracking of the aircraft;

同时依据实时捕获并存储的飞行器状态响应数据在线辨识、动态调整数据驱动模型预测控制器所用模型参量。At the same time, the model parameters used by the data-driven model predictive controller are dynamically adjusted based on the online identification and dynamic adjustment of the aircraft state response data captured and stored in real time.

进一步地,所述飞行器为固定翼飞行器,固定翼飞行器的平面横向动力学方程表示为:Further, the aircraft is a fixed-wing aircraft, and the plane transverse dynamics equation of the fixed-wing aircraft is expressed as:

nk+1=nk+Vgcosψgkδtn k+1 =n k +V g cosψ gk δt

ek+1=ek+Vgsinψgkδte k+1 =e k +V g sinψ gk δt

ψgk+1=ψgk+(gtanφk/V)δtψ gk+1 =ψ gk +(gtanφ k /V)δt

φk+1=φk+pkδtφ k+1 =φ k +p k δt

滚转维度响应方程表示为:The rolling dimension response equation is expressed as:

pk+1=pk+(b0φrk-a1pk-a0φk)δtp k+1 =p k +(b 0 φ rk -a 1 p k -a 0 φ k )δt

横向跟踪误差方程表示为:The lateral tracking error equation is expressed as:

lek+1=lek+Vgsinψgδtl ek+1 =l ek +V g sinψ g δt

航向跟踪误差方程表示:The heading tracking error equation expresses:

ψek+1=ψek+(gtanφk/V)δtψ ek+1 =ψ ek +(gtanφ k /V)δt

式中n和e分别表示飞行器的北向位置与东向位置,均以起飞坐标为原点;Vg表示地速矢量;ψg表示地速矢量与北向的平面夹角;g为当地重力加速度;φ表示滚转角;V表示空速矢量,p表示滚转角速度;φr是输入飞行器的期望滚转角参考信号;a0、a1、b0为模型的常数参量;k是采样时刻的索引,δt表示采样间隔的时间差。In the formula, n and e represent the northward position and eastward position of the aircraft respectively, both of which take the take-off coordinates as the origin; V g represents the ground speed vector; ψ g represents the plane angle between the ground speed vector and the north direction; g is the local gravitational acceleration; represents the roll angle; V represents the airspeed vector, p represents the roll angular velocity; φ r is the expected roll angle reference signal input to the aircraft; a 0 , a 1 , b 0 are the constant parameters of the model; k is the index of the sampling time, δt Indicates the time difference between sampling intervals.

进一步地,所述数据驱动模型预测控制器所用模型参量通过收集的飞行数据使用带控制的稀疏辨识方法经过优化器求解预先确定。Further, the model parameters used by the data-driven model predictive controller are pre-determined through the solution of the optimizer by using the collected flight data and using the sparse identification method with control.

进一步地,飞行数据通过如下方法采集:在无风的环境下对飞行器持续输入控制激励,输入控制的数据包括多个不同幅值的“2-1-1”双级联机动,在每个输入控制达到稳定状态后记录飞行数据,包含滚转角、滚转率和输入飞行器的期望滚转角参考信号的三维向量序列。Further, the flight data is collected by the following method: continuously input control excitation to the aircraft in a windless environment, the input control data includes multiple "2-1-1" double-cascade maneuvers with different amplitudes, and each input After the control reaches a steady state, the flight data is recorded, including the three-dimensional vector sequence of the roll angle, the roll rate, and the expected roll angle reference signal input to the aircraft.

进一步地,所述数据驱动模型预测控制器输出的期望滚转角参考信号设置有硬性约束条件,使控制器输出的滚转角设定在安全范围之内。Further, the data-driven model predicts that the expected roll angle reference signal output by the controller is set with hard constraints, so that the roll angle output by the controller is set within a safe range.

进一步地,所述目标函数包含横向跟踪误差与航向跟踪误差产生的代价,滚转角度的惩罚项和滚转机动惩罚项。Further, the objective function includes the cost of lateral tracking error and heading tracking error, the penalty item of roll angle and the penalty item of roll maneuver.

进一步地,还包括使用PID控制器进行飞行器的纵向高度跟踪。Further, it also includes using a PID controller to track the vertical height of the aircraft.

一种基于数据驱动模型预测控制的飞行器轨迹跟踪装置,包括:An aircraft trajectory tracking device based on data-driven model predictive control, comprising:

数据采集和存储单元,用于在飞行器飞行过程中实时捕获并存储最新的飞行器状态响应数据;所述飞行器状态响应数据包含飞行器的北向位置坐标n、东向位置坐标e、偏航角ψg、滚转角φ、滚转率p、横向跟踪误差le与航向跟踪误差ψeThe data acquisition and storage unit is used to capture and store the latest aircraft status response data in real time during the flight of the aircraft; the aircraft status response data includes the aircraft's northward position coordinate n, eastward position coordinate e, yaw angle ψ g , Roll angle φ, roll rate p, lateral tracking error l e and heading tracking error ψ e ;

数据驱动模型预测控制器,以当前时刻的飞行器状态响应数据作为输入,并基于飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程实时连续预测当前时刻之后一时间段内的飞行器状态响应数据,基于预测的当前时刻之后一时间段内的飞行器状态响应数据建立目标函数进行优化,获得最优的下一时刻的期望滚转角参考信号,飞行器依据预测的期望滚转角参考信号执行飞行任务,实现飞行器的平面横向轨迹跟踪;The data-driven model predictive controller takes the aircraft state response data at the current moment as input, and based on the plane lateral dynamics equation of the aircraft, the roll dimension response equation, the lateral tracking error and heading tracking error equations, it continuously predicts the time after the current moment in real time Based on the aircraft state response data within a period of time, the objective function is established based on the aircraft state response data within a period of time after the predicted current moment for optimization to obtain the optimal expected roll angle reference signal at the next moment, and the aircraft is based on the predicted expected roll angle The reference signal is used to perform flight missions and realize the plane lateral trajectory tracking of the aircraft;

模型参量动态调整单元,用于依据数据采集和存储单元存储的飞行器状态响应数据在线辨识、动态调整数据驱动模型预测控制器所用模型参量。The model parameter dynamic adjustment unit is used for online identification and dynamic adjustment of model parameters used by the data-driven model predictive controller based on the aircraft state response data stored in the data acquisition and storage unit.

进一步地,还包括PID控制器,用于进行飞行器的纵向高度跟踪。Further, a PID controller is also included, which is used for longitudinal altitude tracking of the aircraft.

进一步地,在纵向高度控制的PID控制器中,可以为控制器输出的目标俯仰角做出限定,使得飞行器爬升角和下滑角均小于10度。Further, in the PID controller for longitudinal altitude control, the target pitch angle output by the controller can be limited so that both the climb angle and the glide angle of the aircraft are less than 10 degrees.

本发明的有益效果为:The beneficial effects of the present invention are:

1、本发明针对飞行器的动力学模型,采用“2-1-1”机动结合稀疏辨识的方法能够从数据中快速识别模型参数,且具备高准确性和强普适性。1. For the dynamic model of the aircraft, the present invention adopts the "2-1-1" maneuver combined with the sparse identification method to quickly identify the model parameters from the data, and has high accuracy and strong universality.

2、本发明在传统模型预测控制器的基础上提出一种类似于机器学习领域增量训练的思想,并提供模型动态更新的技术框架,能够充分利用被控系统的输入输出数据,以实现更加鲁棒的自适应控制行为。2. On the basis of the traditional model predictive controller, the present invention proposes an idea similar to incremental training in the field of machine learning, and provides a technical framework for dynamic update of the model, which can make full use of the input and output data of the controlled system to achieve more Robust adaptive control behavior.

3、本发明提出的跟踪控制框架,将数据驱动模型预测控制器与PID控制器相结合,便能很好地完成固定翼飞行器在三维空间中的立体轨迹跟踪任务,实现了飞行器的空间轨迹跟踪任务,能够使得飞行器的飞行轨迹与目标路径间保持良好的趋同,具有优秀的控制性能。3. The tracking control framework proposed by the present invention combines the data-driven model predictive controller with the PID controller, which can well complete the three-dimensional trajectory tracking task of the fixed-wing aircraft in three-dimensional space, and realize the spatial trajectory tracking of the aircraft The task can make the flight trajectory of the aircraft maintain a good convergence with the target path, and has excellent control performance.

4、本发明的基于数据驱动模型预测控制的飞行器轨迹跟踪方法可以推广应用至更多的控制策略中。4. The aircraft trajectory tracking method based on data-driven model predictive control of the present invention can be extended and applied to more control strategies.

附图说明Description of drawings

图1为本发明用于固定翼轨迹跟踪任务的数据驱动模型预测控制方法的控制框图;Fig. 1 is the control block diagram of the data-driven model predictive control method that the present invention is used for fixed-wing trajectory tracking task;

图2为建立飞行器动力学模型是所用坐标系与参量的示意图;Fig. 2 is the schematic diagram that establishes aircraft dynamics model to be used coordinate system and parameter;

图3为仿真环境中各个软件之间的关系图;Fig. 3 is the relationship diagram between each software in the simulation environment;

图4飞行数据采集步骤中的部分双级联“2-1-1”机动输入与飞机滚转相应输出结果;Figure 4. Part of the dual-cascade "2-1-1" maneuver input and the corresponding output results of the aircraft roll in the flight data acquisition step;

图5为飞行器与航路点的关系以及误差项表示示意图;Fig. 5 is a schematic diagram showing the relationship between the aircraft and the waypoint and the error term;

图6为使用辨识所得模型还原得到的数据与实际飞行数据的对比图;Fig. 6 is a comparison chart between the data restored by using the identified model and the actual flight data;

图7为使用辨识所得模型预测得到的数据与实际飞行数据的对比图;Fig. 7 is the comparison diagram of the data predicted using the identified model and the actual flight data;

图8为固定翼无人机方框跟踪飞行试验的结果图;Fig. 8 is the result figure of fixed-wing unmanned aerial vehicle frame tracking flight test;

图9为固定翼无人机空间轨迹跟踪飞行试验的结果图。Fig. 9 is the result diagram of the space trajectory tracking flight test of the fixed-wing UAV.

具体实施方式Detailed ways

本发明提供了一种基于数据驱动模型预测控制方法的飞行器轨迹跟踪方法,该方法为:在飞行器飞行过程中实时捕获并存储最新的飞行器状态响应数据;The present invention provides an aircraft trajectory tracking method based on a data-driven model predictive control method, the method comprising: capturing and storing the latest aircraft state response data in real time during the flight process of the aircraft;

将当前时刻的飞行器状态响应数据作为数据驱动模型预测控制器输入,数据驱动模型预测控制器基于飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程实时连续预测当前时刻之后一时间段内的飞行器状态响应数据,基于预测的当前时刻之后一时间段内的飞行器状态响应数据建立目标函数进行优化,获得最优的下一时刻的期望滚转角参考信号,飞行器依据预测的期望滚转角参考信号执行飞行任务,实现飞行器的平面横向轨迹跟踪;The aircraft state response data at the current moment is used as the input of the data-driven model predictive controller, and the data-driven model predictive controller is based on the aircraft's plane lateral dynamics equation, roll dimension response equation, lateral tracking error and heading tracking error equations to continuously predict the current situation in real time. Based on the aircraft state response data within a period of time after the current moment, the objective function is established based on the predicted aircraft state response data within a period of time after the current moment, and the optimal roll angle reference signal at the next moment is obtained. The expected roll angle reference signal is used to perform the flight mission, and realize the plane lateral trajectory tracking of the aircraft;

同时依据存储的飞行器状态响应数据在线辨识、动态调整数据驱动模型预测控制器所用模型参量。At the same time, based on the stored aircraft state response data, online identification and dynamic adjustment of the model parameters used by the data-driven model predictive controller are performed.

本发明提出的跟踪方法,基于飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程等构建数据驱动模型预测控制器,实现了飞行器的空间轨迹跟踪任务,能够使得飞行器的飞行轨迹与目标路径间保持良好的趋同,具有优秀的控制性能。本发明方法适用于各种飞行器,下面以固定翼飞行器为例,结合附图对本发明进行详细的描述。The tracking method proposed by the present invention constructs a data-driven model predictive controller based on the plane lateral dynamics equation of the aircraft, the roll dimension response equation, the lateral tracking error and heading tracking error equations, etc., and realizes the space trajectory tracking task of the aircraft, which can make The flight trajectory of the aircraft maintains good convergence with the target path, and has excellent control performance. The method of the present invention is applicable to various aircrafts. The fixed-wing aircraft is taken as an example below to describe the present invention in detail in conjunction with the accompanying drawings.

图1右侧是本发明提供的一种用于固定翼飞行器轨迹跟踪的数据驱动模型预测控制方法控制框图,框图的实现包含如下步骤:The right side of Fig. 1 is a kind of data-driven model predictive control method control block diagram for track tracking of fixed-wing aircraft provided by the present invention, and the realization of block diagram comprises the following steps:

步骤S1,建立模型预测控制器的基本模型。首先建立飞行器的平面横向动力学方程,图2为建立飞行器动力学模型是所用坐标系与参量的示意图。固定翼飞行器的平面横向动力学方程可以使用由北向和东向组成的局部惯性坐标系

Figure BDA00040506163600000512
以及机体坐标系/>
Figure BDA00040506163600000511
下的参量共同定义,平面横向动力学方程表示如下:Step S1, establishing the basic model of the model predictive controller. Firstly, the plane lateral dynamics equation of the aircraft is established. Figure 2 is a schematic diagram of the coordinate system and parameters used to establish the aircraft dynamics model. The plane lateral dynamics equations for fixed-wing aircraft can use a local inertial coordinate system consisting of north and east
Figure BDA00040506163600000512
and body coordinate system />
Figure BDA00040506163600000511
The following parameters are jointly defined, and the plane transverse dynamic equation is expressed as follows:

Figure BDA0004050616360000051
Figure BDA0004050616360000051

Figure BDA0004050616360000052
Figure BDA0004050616360000052

Figure BDA0004050616360000053
Figure BDA0004050616360000053

Figure BDA0004050616360000054
Figure BDA0004050616360000054

其中n和e分别表示飞机的北向位置与东向位置,均以起飞坐标为原点;上标·表示对应物理量的导数,

Figure BDA0004050616360000055
和/>
Figure BDA0004050616360000056
分别表示飞机的北向速度与东向速度,Vg表示地速矢量;ψg表示地速矢量与北向的平面夹角,以北向为基准顺时针旋转定义为正,取值范围[-π,π];/>
Figure BDA0004050616360000057
表示地速矢量与北向的平面夹角的角速度,g为当地重力加速度;φ表示滚转角,以右滚定义为正;V表示空速矢量;/>
Figure BDA0004050616360000058
p表示滚转角速度。另外,图中的W表示风速。其次针对固定翼飞行器的滚转通道额外增加以下滚转维度响应方程:Among them, n and e represent the northward position and eastward position of the aircraft respectively, both of which take the take-off coordinates as the origin; the superscript · represents the derivative of the corresponding physical quantity,
Figure BDA0004050616360000055
and />
Figure BDA0004050616360000056
respectively represent the northward speed and eastward speed of the aircraft, V g represents the ground speed vector; ];/>
Figure BDA0004050616360000057
Indicates the angular velocity of the angle between the ground speed vector and the north plane, g is the local gravity acceleration;
Figure BDA0004050616360000058
p represents the roll angular velocity. In addition, W in the figure represents a wind speed. Secondly, for the roll channel of the fixed-wing aircraft, the following roll dimension response equation is additionally added:

Figure BDA0004050616360000059
Figure BDA0004050616360000059

其中,

Figure BDA00040506163600000510
是滚转角加速度;φr是输入飞行器的期望滚转角参考信号;a0、a1、b0为模型的常数参量。in,
Figure BDA00040506163600000510
is the roll angle acceleration; φ r is the expected roll angle reference signal input to the aircraft; a 0 , a 1 , b 0 are the constant parameters of the model.

飞行器执行轨迹跟踪任务时,用户指定的目标轨迹是以离散航路点序列的形式给出的,在横向轨迹跟踪任务中可以把航路点信息退化为二维平面坐标,并将其进行K-D树空间划分,而后从中提取以最邻近目标点为起点的多个航路点信息,对飞机的平面航迹坐标系进行投影,并在该轴系下进行高次多项式拟合得到曲线F(x);图5为飞行器与航路点的关系以及误差项表示示意图。子图(a)为在为目标轨迹航路点构建为空间划分K-D树后,程序提取以最邻近目标点为起点的多个航路点信息。子图(b)呈现了在无人机平面航迹坐标系下对所选航路点进行高次多项式拟合得到的曲线F(x),并给出了控制器状态量中横向跟踪误差项le和航向跟踪误差项ψe的几何表示。When the aircraft performs a trajectory tracking task, the target trajectory specified by the user is given in the form of a sequence of discrete waypoints. In the lateral trajectory tracking task, the waypoint information can be degenerated into two-dimensional plane coordinates, and it can be divided into KD tree space , and then extract the information of multiple waypoints starting from the nearest target point, project the plane track coordinate system of the aircraft, and perform high-order polynomial fitting under this axis system to obtain the curve F(x); Fig. 5 A schematic representation of the relationship between the aircraft and waypoints and the error term. Sub-figure (a) is after constructing a space-divided KD tree for the waypoint of the target trajectory, the program extracts the information of multiple waypoints starting from the nearest target point. Sub-figure (b) presents the curve F(x) obtained by high-order polynomial fitting of the selected waypoints in the plane track coordinate system of the UAV, and gives the lateral tracking error item l in the controller state quantity Geometric representation of e and heading tracking error term ψe .

最后,基于跟踪目的,建立横向跟踪误差与航向跟踪误差方程的具体表达式:Finally, based on the purpose of tracking, the specific expressions of the lateral tracking error and heading tracking error equations are established:

le=F(x)-yl e =F(x)-y

Ψe=arctan(F′(x))-Ψg Ψ e = arctan(F′(x))-Ψ g

式中的x与y则为航路点在航迹坐标系下的空间位置参数。F′(x)是F(x)的导数。The x and y in the formula are the spatial position parameters of the waypoint in the track coordinate system. F'(x) is the derivative of F(x).

Figure BDA0004050616360000061
Figure BDA0004050616360000061

其中将飞机的北向位置坐标n、东向位置坐标e、采集的偏航角ψg、滚转角φ、滚转率p、横向跟踪误差le与航向跟踪误差ψe作为状态向量,而将控制量确定为输入飞控的φr值。Among them, the aircraft's north position coordinate n, east position coordinate e, collected yaw angle ψ g , roll angle φ, roll rate p, lateral tracking error l e and heading tracking error ψ e are taken as state vectors, and the control The quantity is determined as the value of φ r input to the flight control.

步骤S3,为了在计算机中设定目标函数并进行最优化求解,需要将先前给出的飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程离散成为差分形式:In step S3, in order to set the objective function in the computer and perform an optimal solution, it is necessary to discretize the previously given plane lateral dynamics equation, roll dimension response equation, lateral tracking error and heading tracking error equations of the aircraft into a differential form:

nk+1=nk+Vgcosψgkδtn k+1 =n k +V g cosψ gk δt

ek+1=ek+Vgsinψgkδte k+1 =e k +V g sinψ gk δt

ψgk+1=ψgk+(gtanφk/V)δtψ gk+1 =ψ gk +(gtanφ k /V)δt

φk+1=φk+pkδtφ k+1 =φ k +p k δt

pk+1=pk+(b0φrk-a1pk-a0φk)δtp k+1 =p k +(b 0 φ rk -a 1 p k -a 0 φ k )δt

lek+1=lek+Vgsinψgδtl ek+1 =l ek +V g sinψ g δt

ψek+1=ψek+(gtanφk/V)δtψ ek+1 =ψ ek +(gtanφ k /V)δt

其中,k是采样时刻的索引,δt表示采样间隔的时间差。Among them, k is the index of the sampling moment, and δt represents the time difference of the sampling interval.

基于上述差分形式,所述数据驱动模型预测控制器可以依据输入的当前时刻的飞行器状态响应数据实时连续预测当前时刻之后一时间段内的飞行器状态响应数据,基于预测的当前时刻之后一时间段内的飞行器状态响应数据建立目标函数进行优化,获得最优的下一时刻的期望滚转角参考信号,飞行器依据预测的期望滚转角参考信号执行飞行任务,实现飞行器的平面横向轨迹跟踪。Based on the above differential form, the data-driven model predictive controller can continuously predict the aircraft state response data within a period after the current moment in real time according to the input aircraft state response data at the current moment. Based on the state response data of the aircraft, the objective function is established for optimization, and the optimal expected roll angle reference signal at the next moment is obtained. The aircraft executes the flight mission according to the predicted expected roll angle reference signal, and realizes the plane lateral trajectory tracking of the aircraft.

其中将目标函数最小化是模型预测控制器的关键部分,这个目标决定了在为了更好地跟踪参考的过程中哪些控制动作和飞行状态是可取的、哪些飞行动作是最好避免的。在横向轨迹跟踪问题中,本发明给出一种优化目标函数:Among them, the minimization of the objective function is a key part of the model predictive controller. This objective determines which control actions and flight states are desirable and which flight maneuvers are best avoided in order to better track the reference. In the horizontal trajectory tracking problem, the present invention provides a kind of optimization objective function:

Figure BDA0004050616360000062
Figure BDA0004050616360000062

其中

Figure BDA0004050616360000071
ωφr、/>
Figure BDA0004050616360000072
代表各项的权重系数,用于调节各项在最优化问题中的重要程度。N表示模型预测控制器的预测区间长度,式中第一行描述了横向跟踪误差与航向跟踪误差产生的代价,使其最小化能够让飞行器更加精准地跟踪参考轨迹;第二行描述了滚转角度的惩罚项,减小该项能够让飞行器在跟踪参考的同时尽量以平稳的姿态飞行;第三行描述了滚转机动惩罚项,最小化该项可以保证控制器输出控制量的过渡过程更加平滑,使飞行器在任务过程中避免出现频繁的大幅度机动,从而增加飞行稳定性、减小能量消耗。in
Figure BDA0004050616360000071
ω φr 、/>
Figure BDA0004050616360000072
Represents the weight coefficient of each item, which is used to adjust the importance of each item in the optimization problem. N represents the length of the prediction interval of the model predictive controller. The first line of the formula describes the cost of the lateral tracking error and the heading tracking error. Minimizing it can make the aircraft track the reference trajectory more accurately; the second line describes the roll Angle penalty term, reducing this term can make the aircraft fly as smoothly as possible while tracking the reference; the third line describes the roll maneuver penalty term, minimizing this term can ensure that the transition process of the controller output control amount is more stable. Smooth, so that the aircraft avoids frequent large-scale maneuvers during the mission, thereby increasing flight stability and reducing energy consumption.

作为一种优选方案,目标函数权重可以如下取值:As a preferred solution, the weight of the objective function can take the following values:

Figure BDA0004050616360000073
Figure BDA0004050616360000073

经测试在该权重系数下可调和数据驱动模型预测控制器(MPC控制器)的各项指标,最小化目标函数就能让飞行器以更少更平和机动拥有更好的平面轨迹跟踪能力,其中最优化求解步骤可以使用Ipopt开源求解器进行实时求解。After testing, the various indicators of the data-driven model predictive controller (MPC controller) can be adjusted under this weight coefficient. Minimizing the objective function can allow the aircraft to have better plane trajectory tracking capabilities with fewer and more peaceful maneuvers. The most The optimization solution step can use Ipopt open source solver for real-time solution.

步骤S4,在实时飞行器轨迹跟踪的过程中,依据实时捕获并存储的飞行器状态响应数据对数据驱动模型预测控制器所用模型参量使用带控制的动力系统稀疏辨识方法(Sparse Identification of Nonlinear Dynamics with Control,SINDYc)进行识别,动态调整。基于前述描述,数据驱动模型预测控制器所用模型参量主要为滚转维度响应方程中的a0、a1、b0三个常数参量。针对滚转通道,存储的飞行器状态响应数据包含了滚转角、滚转率和输入滚转角参考值的三维向量序列;在候选库的配置上,步骤S1已经给出了确定的二阶模型形式-滚转维度响应方程,因此可以按照该方程设定对应的基函数。于是可以经过优化器求解得a0、a1、b0对应的具体参数值,实现在线辨识、动态调整。Step S4, in the process of real-time aircraft trajectory tracking, according to the real-time captured and stored aircraft state response data, use the sparse identification method (Sparse Identification of Nonlinear Dynamics with Control, SINDYc) for identification and dynamic adjustment. Based on the foregoing description, the model parameters used by the data-driven model predictive controller are mainly the three constant parameters a 0 , a 1 , and b 0 in the rolling dimension response equation. For the roll channel, the stored aircraft state response data contains a three-dimensional vector sequence of roll angle, roll rate and input roll angle reference value; in the configuration of the candidate library, step S1 has given a definite second-order model form- Roll the dimension response equation, so the corresponding basis function can be set according to this equation. Therefore, the specific parameter values corresponding to a 0 , a 1 , and b 0 can be solved by the optimizer to realize online identification and dynamic adjustment.

进一步地,在初次使用前,所述数据驱动模型预测控制器所用模型参量可以通过收集的飞行数据使用带控制的稀疏辨识方法经过优化器求解预先确定。Furthermore, before the initial use, the model parameters used by the data-driven model predictive controller can be pre-determined through the optimization solution by using the collected flight data and using the sparse identification method with control.

飞行数据通过执行程控飞行任务以便采集,固定翼飞行器需要在无风的环境下持续输入控制激励并记录所有的飞行数据,这些数据应该包括多个不同幅值的2-1-1双级联机动,输入的控制幅度应当控制在恰当范围内。图4为飞行数据采集步骤中所用的部分双级联“2-1-1”机动输入与飞机滚转相应输出结果。“2-1-1”机动是一种幅值相同、占空比为2:1:1的交替脉冲信号输入,本发明中使用改进的双级联“2-1-1”机动作为一次控制输入组合,如图中虚线表示;图中的实线则为固定翼无人机在该激励输入下的响应状况。需要说明的是,该过程可以采用实际飞行采集或仿真采集,本实施例中仿真平台采用PX4、Gazebo、ROS等主流开源工具架搭建,能够实现飞行器、飞控、机载计算机与大气环境等多对象的真实模拟,其中程控部分由ROS节点程序完成,各软件框图见图3。该平台实现了飞行器、飞控、机载计算机与大气环境等多个对象的真实模拟。其中,Gazebo是一套机器人仿真工具集,内置高性能实时物理引擎,提供真实的三维物理解算功能,可以在Gazebo中创建虚拟的固定翼无人机,并配置包含风场速度与紊流在内的环境参数,通过模拟器就可以仿真飞行器的动力学行为并输出带有模拟噪声的机载传感器数据。PX4则是一款开源无人系统控制软件解决方案,可以接入虚拟飞行器的传感器与执行器并实现低级控制。本发明提出的数据驱动模型预测控制器作为高级控制环路则要运行在机器人操作系统(Robot OperatingSystem,ROS)之上,这是一个通用的机器人开发工具集,可以规范与协调控制器及其各种附属进程的运转,并使用MAVROS软件包将其接入PX4飞控软件。The flight data is collected by performing a program-controlled flight mission. The fixed-wing aircraft needs to continuously input control excitation and record all flight data in a windless environment. These data should include multiple 2-1-1 double-cascade maneuvers with different amplitudes. , the input control range should be controlled within an appropriate range. Fig. 4 is part of the dual-cascade "2-1-1" maneuver input and the corresponding output of the aircraft roll used in the flight data acquisition step. The "2-1-1" maneuver is an alternate pulse signal input with the same amplitude and a duty ratio of 2:1:1. The improved double-cascade "2-1-1" maneuver is used as a primary control in the present invention The input combination is indicated by the dotted line in the figure; the solid line in the figure is the response status of the fixed-wing UAV under the excitation input. It should be noted that this process can use actual flight acquisition or simulation acquisition. In this embodiment, the simulation platform is built using mainstream open source tool frames such as PX4, Gazebo, and ROS, which can realize multi-level monitoring of aircraft, flight control, airborne computer, and atmospheric environment. The real simulation of the object, in which the program control part is completed by the ROS node program, the block diagram of each software is shown in Figure 3. The platform realizes the real simulation of multiple objects such as aircraft, flight control, airborne computer and atmospheric environment. Among them, Gazebo is a set of robot simulation tools, with a built-in high-performance real-time physics engine, which provides real 3D physics calculation functions, and can create a virtual fixed-wing UAV in Gazebo, and configure it including wind field speed and turbulence in The dynamic behavior of the aircraft can be simulated through the simulator and the airborne sensor data with simulated noise can be output. PX4 is an open source unmanned system control software solution, which can access the sensors and actuators of the virtual aircraft and realize low-level control. As a high-level control loop, the data-driven model predictive controller proposed by the present invention will run on the Robot Operating System (ROS), which is a general robot development tool set, which can standardize and coordinate the controller and its various components. The operation of a subsidiary process, and use the MAVROS software package to connect it to the PX4 flight control software.

作为一种实施方案,飞行数据采集过程中的采样频率可以设置为20Hz,其中控制输入包含从0.1至0.8弧度且以0.1弧度为间隔的不同幅值“2-1-1”双级联机动,在每个控制单元完成输入后均会安排足够长的待机间隙以供达到稳定状态。As an implementation, the sampling frequency in the flight data acquisition process can be set to 20Hz, wherein the control input includes "2-1-1" double-cascade maneuvers with different amplitudes from 0.1 to 0.8 radians and at intervals of 0.1 radians, After each control unit completes the input, a standby gap long enough to reach a steady state is arranged.

基于采集的飞行数据,同样使用带控制的动力系统稀疏辨识方法(SparseIdentification of Nonlinear Dynamics with Control,SINDYc)进行识别经过优化器求解得a0、a1、b0对应的具体参数值,确定所述数据驱动模型预测控制器所用模型参量的初始值。Based on the collected flight data, Sparse Identification of Nonlinear Dynamics with Control (SINDYc) is also used to identify the specific parameter values corresponding to a 0 , a 1 , and b 0 through the optimizer, and then determine the Initial values for the model parameters used by the data-driven model predictive controller.

确定初始值后使用该基本模型以数据采集过程中相同初始状态与相同控制序列的条件对飞行器飞行状态进行拟合还原,评估与真实飞行记录的误差状况,若精度达到一定要求则通过核验,否则检查飞行数据采集与辨识过程是否操作不当,重新执行相关步骤。After determining the initial value, use the basic model to fit and restore the flight state of the aircraft under the same initial state and the same control sequence conditions in the data collection process, evaluate the error status with the real flight record, and pass the verification if the accuracy meets certain requirements, otherwise Check whether the flight data collection and identification process is improperly operated, and re-execute the relevant steps.

图6为使用采集的飞行数据中的训练集辨识所得模型还原训练集得到的数据与训练集实际飞行数据的对比图。图中给出了与训练集相同控制序列、相同初始状态输入下该模型对数据集的拟合结果,其中实线和虚线分别为原始曲线与拟合后的曲线。不难发现,在滚转幅度较小的情况下,辨识模型能够很好地对数据集中滚转角φ项进行拟合还原,在滚转幅度更大时出现了一定的拟合精度下降现象,这是由低阶模型无法精确还原高频信号造成的。幸运的是,该拟合结果已经完全适用于模型预测控制器的设计,并且无人机飞行追求平稳,实际飞行过程中往往少有出现如此高频率大幅度的机动,大部分情况下控制输入将落在较小的幅值区间内,更有利于飞行状态的预测。Fig. 6 is a comparison diagram between the data obtained by using the training set identification in the collected flight data to restore the training set and the actual flight data of the training set. The figure shows the fitting results of the model to the data set under the same control sequence and the same initial state input as the training set, where the solid line and dashed line are the original curve and the fitted curve, respectively. It is not difficult to find that the identification model can well fit and restore the roll angle φ item in the data set when the roll range is small, but when the roll range is larger, there is a certain decrease in fitting accuracy. It is caused by the inability of the low-order model to accurately restore high-frequency signals. Fortunately, the fitting results are fully applicable to the design of model predictive controllers, and UAVs pursue smooth flight. In actual flight, such high-frequency and large-scale maneuvers are often rare. In most cases, the control input will be Falling in a smaller range of amplitudes is more conducive to the prediction of the flight state.

图7为使用采集的飞行数据中的训练集辨识所得模型预测测试集得到的数据与测试集实际飞行数据的对比图。为了验证拟合参数的可推广性,在测试集中包含一些非“2-1-1”机动的输入形式也是有利的,例如一些额外的任务导引过程。图中实线给出了一段随机导引任务过程中的飞行数据,而虚线则是将与该段飞行过程相同的控制序列输入辨识模型后得到的前向预测结果。观察可知,在长达100秒的实验测试中模型预测结果能够很好地贴合真实飞行数据,即使在实验段后也没有出现明显的预测偏差。在模型预测控制过程中,通常只需要对系统当前时刻后几秒内的状态进行预测,该模型的表现已经远远超出了控制器的需求指标。同时该实验也证明了基于“2-1-1”双级联机动数据集进行模型参数辨识的普适性。Fig. 7 is a comparison chart of the data obtained by using the training set identification in the collected flight data to predict the test set and the actual flight data of the test set. In order to verify the generalizability of the fitted parameters, it is also advantageous to include in the test set some input forms other than the “2-1-1” maneuver, such as some additional task-guided procedures. The solid line in the figure shows the flight data during a random guidance mission, while the dotted line is the forward prediction result obtained after inputting the same control sequence as the flight process into the identification model. It can be seen from the observation that the model prediction results in the 100-second experimental test can fit the real flight data well, and there is no obvious prediction deviation even after the experimental period. In the process of model predictive control, it is usually only necessary to predict the state of the system within a few seconds after the current moment, and the performance of the model has far exceeded the demand index of the controller. At the same time, the experiment also proves the universality of model parameter identification based on the "2-1-1" double-cascade maneuver dataset.

除此之外,存储的飞行器状态响应数据可以通过维护一个长度可以根据实际情况调整的队列,用于在实际飞行过程中不断存储,将其作为模型辨识过程中的增量数据集,通过调整该队列的长度也能控制增量数据集对模型基础参数的修正权重。进一步地,增量数据集可以在必要时刻与先前获得的“2-1-1”双级联机动收集的飞行数据一同进行稀疏辨识,从而根据最新数据修正模型参量,对模型做出动态校正,实现数据驱动的动态模型辨识。In addition, the stored aircraft status response data can be continuously stored in the actual flight process by maintaining a queue whose length can be adjusted according to the actual situation, and it can be used as an incremental data set in the model identification process. By adjusting the The length of the queue can also control the correction weight of the incremental data set to the basic parameters of the model. Further, the incremental data set can be sparsely identified together with the previously obtained flight data collected by the "2-1-1" double-cascade maneuver when necessary, so that the model parameters can be corrected according to the latest data, and the model can be dynamically corrected. Realize data-driven dynamic model identification.

作为一种实施方案,存储飞行器实时状态与控制输入的数据队列长度可以在20Hz的采样率下设置为10秒,通过调整该队列的长度也能控制增量数据集对模型基础参数的修正权重。As an implementation, the length of the data queue for storing the real-time status and control input of the aircraft can be set to 10 seconds at a sampling rate of 20 Hz. By adjusting the length of the queue, the correction weight of the incremental data set to the basic parameters of the model can also be controlled.

进一步地,可以为模型预测控制器指定硬性约束条件,这种约束在典型情况下来源于系统各部件的出厂物理限制以及基于安全因素考虑的限制。飞行器的响应是滞后于控制量的,对控制量进行约束即可约束对应状态量,这里可以不对飞行器的状态量添加任何形式的硬约束,只须出于对飞行器平稳飞行以及自动驾驶安全性的考虑而为控制器输出设定滚转约束。Furthermore, hard constraints can be specified for the model predictive controller, which typically originate from the factory physical constraints of each component of the system and constraints based on safety considerations. The response of the aircraft lags behind the control quantity, and the corresponding state quantity can be constrained by restricting the control quantity. Here, it is not necessary to add any form of hard constraints to the state quantity of the aircraft, as long as it is for the stability of the aircraft flight and the safety of automatic driving Consider setting the roll constraint for the controller output.

作为一种实施方案,模型预测控制器的输出量硬性约束可以将滚转角设定在-40度至40度之间。As an implementation, the hard constraint on the output of the model predictive controller can set the roll angle between -40 degrees and 40 degrees.

进一步地,还可以使用PID控制器完善飞行器的纵向高度控制。具体地,复用MPC控制器中获取的以当前飞行器位置最邻近点为起点的多个航路点信息,并对其高度进行插值拟合,从而在飞行过程中计算出平滑变化的目标高度参考值输入控制器。此处将PID控制器的输出设置为俯仰角参考值以逼近目标高度,安全起见可以为控制器输出的目标俯仰角做出限定,使得飞行器爬升角和下滑角均小于10度;同时使用一条分段函数曲线来根据俯仰参考值映射得到恰当的油门输出设定值,为系统提供能量管理策略。其油门输出值与俯仰控制量一并发送至飞控,实现纵向高度跟踪功能。Further, a PID controller can also be used to improve the longitudinal altitude control of the aircraft. Specifically, the multiple waypoint information obtained in the MPC controller starting from the nearest point of the current aircraft position is reused, and its height is interpolated and fitted, so as to calculate the smoothly changing target height reference value during the flight Enter the controller. Here, the output of the PID controller is set as the pitch angle reference value to approach the target height. For safety reasons, the target pitch angle output by the controller can be limited so that the climb angle and the glide angle of the aircraft are both less than 10 degrees; The segment function curve is used to obtain the appropriate throttle output setting value according to the pitch reference value mapping, and provide an energy management strategy for the system. Its throttle output value and pitch control value are sent to the flight controller to realize the longitudinal height tracking function.

给飞行器发出方框轨迹跟踪指令,该方框路径的边长为100米,这对于固定翼飞机而言已经是一个相当小的数值,颇具挑战性。利用本发明方法进行跟踪,在跟踪飞行试验过程中依据存储的飞行器状态响应数据对数据驱动模型预测控制器所用模型参量使用带控制的动力系统稀疏辨识方法(Sparse Identification of Nonlinear Dynamics withControl,SINDYc)进行识别,动态调整,调整的频率为每间隔10秒钟一次。图8为固定翼无人机方框跟踪飞行试验的结果图。子图(a)是无风情况下使用本发明所提控制方法达到的控制效果,子图(b)是添加了风速为4米每秒的西南均风后飞行器的跟踪效果,子图(c)是在平均风速4米每秒、最大风速8米每秒的西南阵风环境下的轨迹跟踪结果,总体表明所使用的控制器性能优良,能够很好地完成平面轨迹跟踪任务,能够实现更加鲁棒的自适应控制行为。Send a box trajectory tracking command to the aircraft. The side length of the box path is 100 meters, which is already a relatively small value for a fixed-wing aircraft and is quite challenging. Utilize the method of the present invention to carry out tracking, and use the power system sparse identification method with control (Sparse Identification of Nonlinear Dynamics with Control, SINDYc) to the model parameter used by the data-driven model predictive controller according to the aircraft state response data stored in the tracking flight test process Recognition, dynamic adjustment, the adjustment frequency is once every 10 seconds. Fig. 8 is a result diagram of the frame tracking flight test of the fixed-wing UAV. Sub-figure (a) is the control effect achieved by using the proposed control method of the present invention under the condition of no wind, sub-figure (b) is the tracking effect of the aircraft after the southwest average wind with a wind speed of 4 meters per second is added, and sub-figure (c ) is the trajectory tracking result under the southwest gust environment with an average wind speed of 4 m/s and a maximum wind speed of 8 m/s. It generally shows that the controller used has excellent performance and can well complete the plane trajectory tracking task, and can achieve more robust Great adaptive control behavior.

图9为固定翼无人机空间轨迹跟踪飞行试验的结果图。该空间轨迹同时包含平面轨迹跟踪指令与高度跟踪指令,图中给出了飞行器任务执行过程中的平面坐标、高度坐标、滚转角与实际参考值的差异,结果表明控制器表现十分良好。Fig. 9 is the result diagram of the space trajectory tracking flight test of the fixed-wing UAV. The space trajectory includes plane trajectory tracking commands and altitude tracking commands at the same time. The figure shows the differences between the plane coordinates, altitude coordinates, roll angle and the actual reference value during the mission execution process of the aircraft. The results show that the controller performs very well.

与前述一种基于数据驱动模型预测控制的飞行器轨迹跟踪方法相对应,本发明还提供了一种基于数据驱动模型预测控制的飞行器轨迹跟踪装置。Corresponding to the aforementioned aircraft trajectory tracking method based on data-driven model predictive control, the present invention also provides an aircraft trajectory tracking device based on data-driven model predictive control.

本发明实施例提供的一种基于数据驱动模型预测控制的飞行器轨迹跟踪装置,包括:An aircraft trajectory tracking device based on data-driven model predictive control provided by an embodiment of the present invention includes:

数据采集和存储单元,用于在飞行器飞行过程中实时捕获并存储最新的飞行器状态响应数据;所述飞行器状态响应数据包含飞行器的北向位置坐标n、东向位置坐标e、偏航角ψg、滚转角φ、滚转率p、横向跟踪误差le与航向跟踪误差ψeThe data acquisition and storage unit is used to capture and store the latest aircraft status response data in real time during the flight of the aircraft; the aircraft status response data includes the aircraft's northward position coordinate n, eastward position coordinate e, yaw angle ψ g , Roll angle φ, roll rate p, lateral tracking error l e and heading tracking error ψ e ;

数据驱动模型预测控制器,以当前时刻的飞行器状态响应数据作为输入,并基于飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程实时连续预测当前时刻之后一时间段内的飞行器状态响应数据,基于预测的当前时刻之后一时间段内的飞行器状态响应数据建立目标函数进行优化,获得最优的下一时刻的期望滚转角参考信号,飞行器依据预测的期望滚转角参考信号执行飞行任务,实现飞行器的平面横向轨迹跟踪;The data-driven model predictive controller takes the aircraft state response data at the current moment as input, and based on the plane lateral dynamics equation of the aircraft, the roll dimension response equation, the lateral tracking error and heading tracking error equations, it continuously predicts the time after the current moment in real time Based on the aircraft state response data within a period of time, the objective function is established based on the aircraft state response data within a period of time after the predicted current moment for optimization to obtain the optimal expected roll angle reference signal at the next moment, and the aircraft is based on the predicted expected roll angle The reference signal is used to perform flight missions and realize the plane lateral trajectory tracking of the aircraft;

模型参量动态调整单元,用于依据数据采集和存储单元存储的飞行器状态响应数据在线辨识、动态调整数据驱动模型预测控制器所用模型参量。The model parameter dynamic adjustment unit is used for online identification and dynamic adjustment of model parameters used by the data-driven model predictive controller based on the aircraft state response data stored in the data acquisition and storage unit.

进一步地,还包括PID控制器,用于进行飞行器的纵向高度跟踪。Further, a PID controller is also included, which is used for longitudinal altitude tracking of the aircraft.

装置实施例可以通过软件实现,也以通过硬件或者软硬件结合的方式实现。The device embodiments can be realized by software, also by hardware or a combination of software and hardware.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. It can be understood and implemented by those skilled in the art without creative effort.

显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其他不同形式的变化或变动。这里无需也无法把所有的实施方式予以穷举。而由此所引申出的显而易见的变化或变动仍处于本发明的保护范围。Apparently, the above-mentioned embodiments are only examples for clear description, rather than limiting the implementation. For those of ordinary skill in the art, other changes or changes in different forms can be made on the basis of the above description. It is not necessary and impossible to exhaustively list all implementation modes here. However, the obvious changes or variations derived therefrom still fall within the protection scope of the present invention.

Claims (9)

1.一种基于数据驱动模型预测控制的飞行器轨迹跟踪方法,其特征在于,该方法为:在飞行器飞行过程中实时捕获最新的飞行器状态响应数据;所述飞行器状态响应数据包含飞行器的北向位置坐标n、东向位置坐标e、偏航角ψg、滚转角φ、滚转率p、横向跟踪误差le与航向跟踪误差ψe1. An aircraft trajectory tracking method based on data-driven model predictive control, characterized in that the method is: capturing the latest aircraft state response data in real time during aircraft flight; said aircraft state response data includes the northward position coordinates of the aircraft n, east position coordinate e, yaw angle ψ g , roll angle φ, roll rate p, lateral tracking error l e and heading tracking error ψ e ; 将当前时刻的飞行器状态响应数据作为数据驱动模型预测控制器输入,数据驱动模型预测控制器基于飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程实时连续预测当前时刻之后一时间段内的飞行器状态响应数据,基于预测的当前时刻之后一时间段内的飞行器状态响应数据建立目标函数进行优化,获得最优的下一时刻的期望滚转角参考信号,飞行器依据预测的期望滚转角参考信号执行飞行任务,实现飞行器的平面横向轨迹跟踪;The aircraft state response data at the current moment is used as the input of the data-driven model predictive controller, and the data-driven model predictive controller is based on the aircraft's plane lateral dynamics equation, roll dimension response equation, lateral tracking error and heading tracking error equations to continuously predict the current situation in real time. Based on the aircraft state response data within a period of time after the current moment, the objective function is established based on the predicted aircraft state response data within a period of time after the current moment, and the optimal roll angle reference signal at the next moment is obtained. The expected roll angle reference signal is used to perform the flight mission, and realize the plane lateral trajectory tracking of the aircraft; 同时依据实时捕获并存储的飞行器状态响应数据在线辨识、动态调整数据驱动模型预测控制器所用模型参量。At the same time, the model parameters used by the data-driven model predictive controller are dynamically adjusted based on the online identification and dynamic adjustment of the aircraft state response data captured and stored in real time. 2.根据权利要求1所述的方法,其特征在于,所述飞行器为固定翼飞行器,固定翼飞行器的平面横向动力学方程表示为:2. method according to claim 1, is characterized in that, described aircraft is fixed-wing aircraft, and the plane transverse dynamics equation of fixed-wing aircraft is expressed as: nk+1=nk+Vgcosψgkδtn k+1 =n k +V g cosψ gk δt ek+1=ek+Vgsinψgkδte k+1 =e k +V g sinψ gk δt ψgk+1=ψgk+(gtanφk/V)δtψ gk+1 =ψ gk +(gtanφ k /V)δt φk+1=φk+pkδtφ k+1 =φ k +p k δt 滚转维度响应方程表示为:The rolling dimension response equation is expressed as: pk+1=pk+(b0φrk-a1pk-a0φk)δtp k+1 =p k +(b 0 φ rk -a 1 p k -a 0 φ k )δt 横向跟踪误差方程表示为:The lateral tracking error equation is expressed as: lek+1=lek+Vgsinψgδtl ek+1 =l ek +V g sinψ g δt 航向跟踪误差方程表示:The heading tracking error equation expresses: ψek+1=ψek+(gtanφk/V)δtψ ek+1 =ψ ek +(gtanφ k /V)δt 式中n和e分别表示飞行器的北向位置与东向位置,均以起飞坐标为原点;Vg表示地速矢量;ψg表示地速矢量与北向的平面夹角;g为当地重力加速度;φ表示滚转角;V表示空速矢量,p表示滚转角速度;φr是输入飞行器的期望滚转角参考信号;a0、a1、b0为模型的常数参量;k是采样时刻的索引,δt表示采样间隔的时间差。In the formula, n and e represent the northward position and eastward position of the aircraft respectively, both of which take the take-off coordinates as the origin; V g represents the ground speed vector; ψ g represents the plane angle between the ground speed vector and the north direction; g is the local gravitational acceleration; represents the roll angle; V represents the airspeed vector, p represents the roll angular velocity; φ r is the expected roll angle reference signal input to the aircraft; a 0 , a 1 , b 0 are the constant parameters of the model; k is the index of the sampling time, δt Indicates the time difference between sampling intervals. 3.根据权利要求1所述的方法,其特征在于,所述数据驱动模型预测控制器所用模型参量通过收集的飞行数据使用带控制的稀疏辨识方法经过优化器求解预先确定。3. The method according to claim 1, characterized in that, the model parameters used by the data-driven model predictive controller are pre-determined through the solution of the optimizer by using the collected flight data and using the sparse identification method with control. 4.根据权利要求3所述的方法,其特征在于,飞行数据通过如下方法采集:在无风的环境下对飞行器持续输入控制激励,输入控制的数据包括多个不同幅值的“2-1-1”双级联机动,在每个输入控制达到稳定状态后记录飞行数据,包含滚转角、滚转率和输入飞行器的期望滚转角参考信号的三维向量序列。4. The method according to claim 3, wherein the flight data is collected by the following method: continuously input control excitation to the aircraft in a windless environment, and the input control data includes a plurality of "2-1" of different amplitudes. -1" double cascade maneuver, recording flight data after each input control reaches a steady state, including a three-dimensional vector sequence of roll angle, roll rate, and desired roll angle reference signal input to the aircraft. 5.根据权利要求1所述的方法,其特征在于,所述数据驱动模型预测控制器输出的期望滚转角参考信号设置有硬性约束条件,使控制器输出的滚转角设定在安全范围之内。5. The method according to claim 1, wherein the data-driven model predicts that the expected roll angle reference signal output by the controller is provided with hard constraints, so that the roll angle output by the controller is set within a safe range . 6.根据权利要求1所述的方法,其特征在于,所述目标函数包含横向跟踪误差与航向跟踪误差产生的代价,滚转角度的惩罚项和滚转机动惩罚项。6 . The method according to claim 1 , wherein the objective function includes costs generated by lateral tracking error and heading tracking error, a roll angle penalty term and a roll maneuver penalty term. 7 . 7.根据权利要求1所述的方法,其特征在于,还包括使用PID控制器进行飞行器的纵向高度跟踪。7. The method according to claim 1, further comprising using a PID controller to track the vertical height of the aircraft. 8.一种基于数据驱动模型预测控制的飞行器轨迹跟踪装置,其特征在于,包括:8. An aircraft trajectory tracking device based on data-driven model predictive control, characterized in that it comprises: 数据采集和存储单元,用于在飞行器飞行过程中实时捕获并存储最新的飞行器状态响应数据;所述飞行器状态响应数据包含飞行器的北向位置坐标n、东向位置坐标e、偏航角ψg、滚转角φ、滚转率p、横向跟踪误差le与航向跟踪误差ψeThe data acquisition and storage unit is used to capture and store the latest aircraft status response data in real time during the flight of the aircraft; the aircraft status response data includes the aircraft's northward position coordinate n, eastward position coordinate e, yaw angle ψ g , Roll angle φ, roll rate p, lateral tracking error l e and heading tracking error ψ e ; 数据驱动模型预测控制器,以当前时刻的飞行器状态响应数据作为输入,并基于飞行器的平面横向动力学方程、滚转维度响应方程、横向跟踪误差与航向跟踪误差方程实时连续预测当前时刻之后一时间段内的飞行器状态响应数据,基于预测的当前时刻之后一时间段内的飞行器状态响应数据建立目标函数进行优化,获得最优的下一时刻的期望滚转角参考信号,飞行器依据预测的期望滚转角参考信号执行飞行任务,实现飞行器的平面横向轨迹跟踪;The data-driven model predictive controller takes the aircraft state response data at the current moment as input, and based on the plane lateral dynamics equation of the aircraft, the roll dimension response equation, the lateral tracking error and heading tracking error equations, it continuously predicts the time after the current moment in real time Based on the aircraft state response data within a period of time, the objective function is established based on the aircraft state response data within a period of time after the predicted current moment for optimization to obtain the optimal expected roll angle reference signal at the next moment, and the aircraft is based on the predicted expected roll angle The reference signal is used to perform flight missions and realize the plane lateral trajectory tracking of the aircraft; 模型参量动态调整单元,用于依据数据采集和存储单元存储的飞行器状态响应数据在线辨识、动态调整数据驱动模型预测控制器所用模型参量。The model parameter dynamic adjustment unit is used for online identification and dynamic adjustment of model parameters used by the data-driven model predictive controller based on the aircraft state response data stored in the data acquisition and storage unit. 9.根据权利要求8所述的装置,其特征在于,还包括PID控制器,用于进行飞行器的纵向高度跟踪。9. The device according to claim 8, further comprising a PID controller for tracking the vertical height of the aircraft.
CN202310040320.9A 2023-01-13 2023-01-13 Aircraft trajectory tracking method and device based on data-driven model predictive control Pending CN116301023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310040320.9A CN116301023A (en) 2023-01-13 2023-01-13 Aircraft trajectory tracking method and device based on data-driven model predictive control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310040320.9A CN116301023A (en) 2023-01-13 2023-01-13 Aircraft trajectory tracking method and device based on data-driven model predictive control

Publications (1)

Publication Number Publication Date
CN116301023A true CN116301023A (en) 2023-06-23

Family

ID=86817570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310040320.9A Pending CN116301023A (en) 2023-01-13 2023-01-13 Aircraft trajectory tracking method and device based on data-driven model predictive control

Country Status (1)

Country Link
CN (1) CN116301023A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118656711A (en) * 2024-08-20 2024-09-17 中国人民解放军国防科技大学 High-speed aircraft trajectory prediction method, device and equipment based on parameter estimation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118656711A (en) * 2024-08-20 2024-09-17 中国人民解放军国防科技大学 High-speed aircraft trajectory prediction method, device and equipment based on parameter estimation

Similar Documents

Publication Publication Date Title
CN107807663B (en) Formation keeping control method for unmanned aerial vehicles based on adaptive control
Liu et al. Tracking control of small-scale helicopters using explicit nonlinear MPC augmented with disturbance observers
CN109696830B (en) Reinforced learning self-adaptive control method of small unmanned helicopter
Wang et al. High-order nonlinear differentiator and application to aircraft control
Wang et al. Nonlinear aeroelastic control of very flexible aircraft using model updating
CN106681345A (en) Crowd-searching-algorithm-based active-disturbance-rejection control method for unmanned plane
CN106527462A (en) Unmanned aerial vehicle (UAV) control device
Prabowo et al. Hardware in-the-loop simulation for visual servoing of fixed wing UAV
Zheng et al. Multilayer neural dynamics-based adaptive control of multirotor UAVs for tracking time-varying tasks
CN108681331A (en) A kind of Attitude tracking control method of Near Space Flying Vehicles
CN115407661A (en) Multi-unmanned aerial vehicle system nonlinear robust tracking control method based on azimuth measurement information
CN104536448B (en) Backstepping based control method for unmanned-plane attitude system
CN116483124A (en) Anti-interference four-rotor unmanned aerial vehicle formation control method for wireless speed measurement
CN106292297B (en) Attitude control method based on PID controller and L1 adaptive controller
El Houm et al. Optimal new sliding mode controller combined with modified supertwisting algorithm for a perturbed quadrotor UAV
Brahim et al. Finite time adaptive smc for uav trajectory tracking under unknown disturbances and actuators constraints
Mou et al. More detailed disturbance measurement and active disturbance rejection altitude control for a flapping wing robot under internal and external disturbances
CN119358147A (en) A graphical modeling and simulation platform for aircraft control systems
Wang et al. UAV trajectory tracking under wind disturbance based on novel antidisturbance sliding mode control
CN116301023A (en) Aircraft trajectory tracking method and device based on data-driven model predictive control
Van Oort et al. Full-envelope modular adaptive control of a fighter aircraft using orthogonal least squares
Mills et al. Vision based control for fixed wing UAVs inspecting locally linear infrastructure using skid-to-turn maneuvers
Qi et al. A segmented energy‐based nonlinear tracking control method for quadrotor transport system
CN116974208A (en) Rotor UAV target attack control method and system based on strapdown seeker
Mehndiratta et al. A simple learning strategy for feedback linearization control of aerial package delivery robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination