Nothing Special   »   [go: up one dir, main page]

CN114564038A - Improved active disturbance rejection based trajectory tracking control system for quad-rotor unmanned aerial vehicle - Google Patents

Improved active disturbance rejection based trajectory tracking control system for quad-rotor unmanned aerial vehicle Download PDF

Info

Publication number
CN114564038A
CN114564038A CN202210298295.XA CN202210298295A CN114564038A CN 114564038 A CN114564038 A CN 114564038A CN 202210298295 A CN202210298295 A CN 202210298295A CN 114564038 A CN114564038 A CN 114564038A
Authority
CN
China
Prior art keywords
unmanned aerial
aerial vehicle
virtual input
quad
control
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
CN202210298295.XA
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.)
Institute of Electrical Engineering of CAS
Original Assignee
Institute of Electrical Engineering of CAS
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 Institute of Electrical Engineering of CAS filed Critical Institute of Electrical Engineering of CAS
Priority to CN202210298295.XA priority Critical patent/CN114564038A/en
Publication of CN114564038A publication Critical patent/CN114564038A/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/08Control of attitude, i.e. control of roll, pitch, or yaw
    • G05D1/0808Control of attitude, i.e. control of roll, pitch, or yaw specially adapted for aircraft
    • 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
    • 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
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

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

The invention discloses a trajectory tracking control system of a quad-rotor unmanned aerial vehicle based on improved active disturbance rejection. The method comprises the following steps: the device comprises a modeling unit, a parameter setting unit, a control unit, a reference rotating speed calculation unit and a track tracking control unit; and the control unit comprises a position outer ring module and an attitude inner ring module. In the invention, the trajectory tracking control of the unmanned aerial vehicle is divided into inner and outer ring control, the outer ring is position control, the inner ring is attitude control, the outer ring adopts nonlinear active disturbance rejection control, and the inner ring adopts model prediction control in the control process, so that the resistance of the unmanned aerial vehicle to the inner disturbance and the outer disturbance is improved. Because the active disturbance rejection control has the defect of phase lag, the phase compensator is adopted to compensate the phase lagging the outer ring so as to improve the control precision of the outer ring controller, and therefore the unmanned aerial vehicle can be ensured to trace and fly according to the given track with high precision.

Description

一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制系统A Trajectory Tracking Control System for Quadrotor UAV Based on Improved Active Disturbance Rejection

技术领域technical field

本发明涉及翼无人机轨迹控制技术领域,特别是涉及一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制系统。The invention relates to the technical field of trajectory control of wing unmanned aerial vehicles, in particular to a quadrotor unmanned aerial vehicle trajectory tracking control system based on improved active disturbance rejection.

背景技术Background technique

四旋翼无人机具有十字交叉的机架结构,机架具有四个机臂,在每个机臂的末端安装有一个电机,通过调节四个电机的转速可以调整四旋翼无人机的位置和姿态。相较于其他飞行器,四旋翼无人机具有成本低、可靠性高、能够垂直起降、可悬停等优点,广泛应用于航拍、植保、消防、电力巡检等领域。但是由于无人机的工作环境复杂,并且无人机本身具有高度的非线性,强耦合,欠驱动等特点,使得无人机在轨迹精准跟踪控制的过程中面临了诸多的困难。The quadrotor UAV has a crisscross frame structure, the rack has four arms, and a motor is installed at the end of each arm, and the position and position of the quadrotor UAV can be adjusted by adjusting the rotation speed of the four motors. attitude. Compared with other aircrafts, quadrotor UAVs have the advantages of low cost, high reliability, vertical take-off and landing, hovering, etc., and are widely used in aerial photography, plant protection, fire protection, power inspection and other fields. However, due to the complex working environment of UAVs, and the characteristics of high nonlinearity, strong coupling, and under-actuated UAVs, UAVs face many difficulties in the process of accurate trajectory tracking and control.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制系统,用以保证无人机按照给定的轨迹高精度的跟踪飞行。The purpose of the present invention is to provide a trajectory tracking control system for a quadrotor UAV based on an improved active disturbance rejection, so as to ensure that the UAV can track and fly with high precision according to a given trajectory.

为实现上述目的,本发明提供了如下方案:For achieving the above object, the present invention provides following scheme:

一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制系统,包括:A quadrotor UAV trajectory tracking control system based on improved active disturbance rejection, comprising:

建模单元,用于对四旋翼无人机进行数学建模并进行线性化处理,得到无人机线性模型;The modeling unit is used to mathematically model and linearize the quadrotor UAV to obtain a linear model of the UAV;

参数给定单元,用于给定四旋翼无人机的x方向参考轨迹、y方向参考轨迹、z方向参考轨迹以及参考偏航角;The parameter setting unit is used to specify the x-direction reference trajectory, the y-direction reference trajectory, the z-direction reference trajectory and the reference yaw angle of the quadrotor UAV;

控制单元,包括位置外环模块和姿态内环模块,所述位置外环模块用于基于所述无人机线性模型,根据所述x方向参考轨迹计算俯仰角,根据所述y方向参考轨迹计算横滚角,以及根据所述z方向参考轨迹计算第一虚拟输入;所述姿态内环模块用于基于所述无人机线性模型,根据所述横滚角、所述俯仰角以及所述参考偏航角计算第二虚拟输入、第三虚拟输入以及第四虚拟输入;The control unit includes a position outer loop module and an attitude inner loop module, the position outer loop module is used to calculate the pitch angle according to the x-direction reference trajectory based on the linear model of the UAV, and calculate the pitch angle according to the y-direction reference trajectory the roll angle, and calculate the first virtual input according to the z-direction reference trajectory; the attitude inner loop module is used to calculate the roll angle, the pitch angle and the reference based on the linear model of the UAV yaw angle calculation of the second virtual input, the third virtual input and the fourth virtual input;

参考转速计算单元,用于根据所述第一虚拟输入、所述第二虚拟输入、所述第三虚拟输入以及所述第四虚拟输入,计算参考转速;a reference rotational speed calculation unit, configured to calculate a reference rotational speed according to the first virtual input, the second virtual input, the third virtual input and the fourth virtual input;

轨迹跟踪控制单元,用于根据所述参考转速,采用无人机的运动学模型和动力学模型计算出无人机的位置和姿态,实现四旋翼无人机的轨迹跟踪控制。The trajectory tracking control unit is used for calculating the position and attitude of the UAV by using the kinematic model and the dynamic model of the UAV according to the reference rotation speed, so as to realize the trajectory tracking control of the quadrotor UAV.

可选地,所述无人机线性模型的表达式如下:Optionally, the expression of the UAV linear model is as follows:

Figure BDA0003562520140000021
Figure BDA0003562520140000021

其中m为无人机质量,Ix、Iy、Iz为无人机在x、y、z方向上的转动惯量,g为重力加速度,φ为横滚角,θ为俯仰角,

Figure BDA0003562520140000022
为横滚角加速度,
Figure BDA0003562520140000023
为俯仰角加速度,
Figure BDA0003562520140000024
为偏航角加速度,
Figure BDA0003562520140000025
为x方向的加速度,
Figure BDA0003562520140000026
为y方向的加速度,
Figure BDA0003562520140000027
为z方向的加速度,U1、U2、U3、U4分别为第一虚拟输入、第二虚拟输入、第三虚拟输入、第四虚拟输入。where m is the mass of the drone, I x , I y , and I z are the rotational inertia of the drone in the x, y, and z directions, g is the acceleration of gravity, φ is the roll angle, θ is the pitch angle,
Figure BDA0003562520140000022
is the roll angular acceleration,
Figure BDA0003562520140000023
is the pitch angle acceleration,
Figure BDA0003562520140000024
is the yaw angular acceleration,
Figure BDA0003562520140000025
is the acceleration in the x direction,
Figure BDA0003562520140000026
is the acceleration in the y direction,
Figure BDA0003562520140000027
is the acceleration in the z direction, and U 1 , U 2 , U 3 , and U 4 are the first virtual input, the second virtual input, the third virtual input, and the fourth virtual input, respectively.

可选地,所述位置外环模块包括:Optionally, the position outer ring module includes:

x方向位置控制器,用于基于所述无人机线性模型,根据所述x方向参考轨迹计算俯仰角;The x-direction position controller is configured to calculate the pitch angle according to the x-direction reference trajectory based on the UAV linear model;

y方向位置控制器,用于基于所述无人机线性模型,根据所述y方向参考轨迹计算横滚角;a y-direction position controller for calculating a roll angle according to the y-direction reference trajectory based on the UAV linear model;

z方向位置控制器,用于基于所述无人机线性模型,根据所述z方向参考轨迹计算第一虚拟输入。A z-direction position controller is configured to calculate a first virtual input according to the z-direction reference trajectory based on the UAV linear model.

可选地,所述x方向位置控制器、y方向位置控制器以及z方向位置控制器均采用自抗扰控制器。Optionally, the x-direction position controller, the y-direction position controller and the z-direction position controller all use an active disturbance rejection controller.

可选地,所述姿态内环模块采用模型预测控制器。Optionally, the attitude inner loop module adopts a model predictive controller.

可选地,所述自抗扰控制器包括跟踪-微分器、扩张观测器、非线性控制律和相位补偿器。Optionally, the active disturbance rejection controller includes a tracking-differentiator, an expansion observer, a nonlinear control law and a phase compensator.

可选地,所述相位补偿器采用结合了fal函数滤波器的相位超前补偿器。Optionally, the phase compensator adopts a phase lead compensator combined with a fal function filter.

可选地,所述参考转速的计算公式如下:Optionally, the calculation formula of the reference speed is as follows:

Figure BDA0003562520140000031
Figure BDA0003562520140000031

其中,ω1、ω2、ω3、ω4分别为四个螺旋桨的参考转速,b为旋翼的升力系数,d为旋翼的阻力系数,l为旋翼转轴到无人机质心的距离,U1、U2、U3、U4分别为第一虚拟输入、第二虚拟输入、第三虚拟输入、第四虚拟输入。Among them, ω 1 , ω 2 , ω 3 , and ω 4 are the reference rotational speeds of the four propellers respectively, b is the lift coefficient of the rotor, d is the drag coefficient of the rotor, l is the distance from the rotor shaft to the center of mass of the UAV, U 1 , U 2 , U 3 , and U 4 are the first virtual input, the second virtual input, the third virtual input, and the fourth virtual input, respectively.

本发明还提供了一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制方法,包括:The present invention also provides a trajectory tracking control method for the quadrotor UAV based on the improved active disturbance rejection, comprising:

对四旋翼无人机进行数学建模;Mathematical modeling of quadrotor UAVs;

获取四旋翼无人机的x方向参考轨迹、y方向参考轨迹、z方向参考轨迹以及参考偏航角;Obtain the x-direction reference trajectory, y-direction reference trajectory, z-direction reference trajectory and reference yaw angle of the quadrotor UAV;

根据所述x方向参考轨迹、所述y方向参考轨迹以及所述z方向参考轨迹,采用自抗扰控制器分别计算俯仰角、横滚角以及第一虚拟输入;According to the x-direction reference trajectory, the y-direction reference trajectory, and the z-direction reference trajectory, an active disturbance rejection controller is used to calculate the pitch angle, the roll angle, and the first virtual input, respectively;

根据所述横滚角、所述俯仰角以及所述参考偏航角,采用模型预测控制器分别计算第二虚拟输入、第三虚拟输入以及第四虚拟输入;According to the roll angle, the pitch angle and the reference yaw angle, a model predictive controller is used to calculate the second virtual input, the third virtual input and the fourth virtual input respectively;

根据所述第一虚拟输入、所述第二虚拟输入、所述第三虚拟输入以及所述第四虚拟输入,计算参考转速;calculating a reference rotational speed according to the first virtual input, the second virtual input, the third virtual input and the fourth virtual input;

根据所述参考转速,基于四旋翼无人机数学模型计算无人机的方向位置和姿态位置,实现四旋翼无人机的轨迹跟踪控制。According to the reference rotation speed, the direction position and attitude position of the UAV are calculated based on the mathematical model of the quadrotor UAV, and the trajectory tracking control of the quadrotor UAV is realized.

根据本发明提供的具体实施例,本发明公开了以下技术效果:According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

本发明中无人机的轨迹跟踪控制分为内外环控制,外环为位置控制,内环为姿态控制,在控制过程中外环采用非线性自抗扰控制,内环采用模型预测控制,提高了无人机对内外扰动的抵抗能力。由于自抗扰控制存在相位滞后的缺陷,所以采用了相位补偿器来对外环滞后的相位进行补偿,用以提高外环控制器控制的精度,从而能够保证无人机按照给定的轨迹高精度的跟踪飞行。The trajectory tracking control of the UAV in the present invention is divided into inner and outer loop control, the outer loop is the position control, and the inner loop is the attitude control. The UAV's resistance to internal and external disturbances is improved. Due to the defect of phase lag in ADRC, a phase compensator is used to compensate the lag phase of the outer loop to improve the control accuracy of the outer loop controller, so as to ensure the high precision of the UAV according to the given trajectory. tracking flight.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative labor.

图1为本发明实施例基于改进的自抗扰的四旋翼无人机轨迹跟踪控制系统结构图框图;1 is a block diagram showing the structure of a quadrotor unmanned aerial vehicle trajectory tracking control system based on improved active disturbance rejection according to an embodiment of the present invention;

图2为无人机控制流程图;Fig. 2 is the UAV control flow chart;

图3为控制单元的原理图;Figure 3 is a schematic diagram of the control unit;

图4为ADRC位置控制器原理图;Figure 4 is a schematic diagram of the ADRC position controller;

图5为原信号相位补偿器;Figure 5 is the original signal phase compensator;

图6为微分信号相位补偿器。Figure 6 is a differential signal phase compensator.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明的目的是提供一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制系统,用以保证无人机按照给定的轨迹高精度的跟踪飞行。The purpose of the present invention is to provide a trajectory tracking control system for a quadrotor UAV based on an improved active disturbance rejection, so as to ensure that the UAV can track and fly with high precision according to a given trajectory.

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

如图1所示,本发明提供的一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制系统,包括:建模单元1、参数给定单元2、控制单元3、参考转速计算单元4和轨迹跟踪控制单元5。As shown in FIG. 1, the present invention provides a quadrotor UAV trajectory tracking control system based on improved ADRR, including: a modeling unit 1, a parameter setting unit 2, a control unit 3, and a reference rotational speed calculation unit 4 and the trajectory tracking control unit 5.

建模单元1,用于对四旋翼无人机进行数学建模并进行线性化处理,得到无人机线性模型。Modeling unit 1 is used to mathematically model and linearize the quadrotor UAV to obtain a linear model of the UAV.

四旋翼无人机非线性的数学模型如下:The nonlinear mathematical model of the quadrotor UAV is as follows:

Figure BDA0003562520140000051
Figure BDA0003562520140000051

其中m为无人机质量,Ix、Iy、Iz为无人机在x、y、z方向上的转动惯量,Ir为旋翼的转动惯量,g为重力加速度,ωsum是四个螺旋桨转速的代数和,

Figure BDA0003562520140000052
为横滚角速度,
Figure BDA0003562520140000053
为俯仰角速度,
Figure BDA0003562520140000054
为偏航角速度,
Figure BDA0003562520140000055
为x方向的速度,
Figure BDA0003562520140000056
为y方向的速度,
Figure BDA0003562520140000057
为z方向的速度,
Figure BDA0003562520140000058
为横滚角加速度,
Figure BDA0003562520140000059
为俯仰角加速度,
Figure BDA00035625201400000510
为偏航角加速度,
Figure BDA00035625201400000511
为x方向的加速度,
Figure BDA00035625201400000512
为y方向的加速度,
Figure BDA00035625201400000513
为z方向的加速度,U1、U2、U3、U4分别为第一虚拟输入、第二虚拟输入、第三虚拟输入、第四虚拟输入。where m is the mass of the drone, I x , I y , and I z are the moment of inertia of the drone in the x, y, and z directions, I r is the moment of inertia of the rotor, g is the acceleration of gravity, and ω sum is the four The algebraic sum of the propeller speeds,
Figure BDA0003562520140000052
is the roll angular velocity,
Figure BDA0003562520140000053
is the pitch angular velocity,
Figure BDA0003562520140000054
is the yaw angular velocity,
Figure BDA0003562520140000055
is the velocity in the x direction,
Figure BDA0003562520140000056
is the velocity in the y direction,
Figure BDA0003562520140000057
is the velocity in the z direction,
Figure BDA0003562520140000058
is the roll angular acceleration,
Figure BDA0003562520140000059
is the pitch angle acceleration,
Figure BDA00035625201400000510
is the yaw angular acceleration,
Figure BDA00035625201400000511
is the acceleration in the x direction,
Figure BDA00035625201400000512
is the acceleration in the y direction,
Figure BDA00035625201400000513
is the acceleration in the z direction, and U 1 , U 2 , U 3 , and U 4 are the first virtual input, the second virtual input, the third virtual input, and the fourth virtual input, respectively.

Figure BDA00035625201400000514
Figure BDA00035625201400000514

其中,ω1、ω2、ω3、ω4分别为四个螺旋桨的转速,b为旋翼的升力系数,d为旋翼的阻力系数,l为旋翼转轴到无人机质心的距离。Among them, ω 1 , ω 2 , ω 3 , and ω 4 are the rotational speeds of the four propellers, respectively, b is the lift coefficient of the rotor, d is the drag coefficient of the rotor, and l is the distance from the rotor shaft to the center of mass of the UAV.

由于非线性模型太过于复杂,所以为了方便对控制单元3进行设计,根据小角度假设对模型进行线性化处理:Since the nonlinear model is too complicated, in order to facilitate the design of the control unit 3, the model is linearized according to the small angle assumption:

Figure BDA0003562520140000061
Figure BDA0003562520140000061

得到无人机的线性模型后,可以根据线性模型设计出无人机的控制单元3。从公式(3)的第4个等式可以知道x方向的位置和俯仰角θ耦合,从第5个等式可以知道y方向的位置和横滚角Φ耦合,而z方向的位置和偏航角ψ之间不存在耦合关系。所以本发明在设计控制单元3时应该将耦合的x与θ,y与Φ联合控制,z与ψ单独控制。控制单元3如图3所示,控制流程如图2所示。After the linear model of the UAV is obtained, the control unit 3 of the UAV can be designed according to the linear model. From the fourth equation of formula (3), we can know that the position in the x direction is coupled with the pitch angle θ. From the fifth equation, we can know that the position in the y direction is coupled with the roll angle Φ, and the position in the z direction is coupled with the yaw angle. There is no coupling relationship between the angles ψ. Therefore, when designing the control unit 3 in the present invention, the coupled x and θ, y and Φ should be controlled jointly, and z and ψ should be controlled independently. The control unit 3 is shown in FIG. 3 , and the control flow is shown in FIG. 2 .

控制单元3主要由位置外环模块和姿态内环模块组成。位置外环模块包括x方向位置控制器、y方向位置控制器以及z方向位置控制器。参数给定单元2给定x方向的参考轨迹xref和y方向的参考轨迹yref,分别经过x方向位置控制器和y方向位置控制器后可以计算出参考的俯仰角θref和参考的横滚角φref。参数给定单元2给定z方向的参考轨迹zref经过z方向位置控制器后可以计算得到虚拟输入U1。经过位置控制器后生成的参考横滚角φref、参考俯仰角θref和参数给定单元2给定的参考偏航角ψref经过姿态内环模块后,可以分别计算得到虚拟输入U2,U3,U4。四个虚拟输入U1、U2、U3、U4经过控制分配器后通过参考转速计算单元4可以得到无人机四个螺旋桨的参考转速,而轨迹跟踪控制单元5采用无人机的运动学模型和动力学模型根据螺旋桨的转速计算出无人机三个方向的位置(x、y、z)与无人机的姿态(φ、θ、ψ)。将计算出的位置和姿态分别反馈到位置控制器和姿态内环模块便可以得到无人机的闭环控制。The control unit 3 is mainly composed of a position outer loop module and an attitude inner loop module. The position outer loop module includes an x-direction position controller, a y-direction position controller, and a z-direction position controller. The parameter setting unit 2 gives the reference trajectory x ref in the x direction and the reference trajectory y ref in the y direction. After passing through the x-direction position controller and the y-direction position controller respectively, the reference pitch angle θ ref and the reference transverse direction can be calculated. Roll angle φ ref . The virtual input U 1 can be obtained by calculating the reference trajectory z ref in the z direction given by the parameter setting unit 2 after passing through the z direction position controller. After passing through the position controller, the reference roll angle φ ref , the reference pitch angle θ ref and the reference yaw angle ψ ref given by the parameter setting unit 2 can be respectively calculated to obtain the virtual input U 2 after passing through the attitude inner loop module, U 3 , U 4 . After the four virtual inputs U 1 , U 2 , U 3 and U 4 pass through the control distributor, the reference rotational speed of the four propellers of the UAV can be obtained through the reference rotational speed calculation unit 4 , and the trajectory tracking control unit 5 adopts the motion of the UAV. The scientific model and dynamic model calculate the position (x, y, z) of the UAV in three directions and the attitude (φ, θ, ψ) of the UAV according to the rotational speed of the propeller. The closed-loop control of the UAV can be obtained by feeding back the calculated position and attitude to the position controller and the attitude inner loop module respectively.

位置控制器采用了自抗扰(ADRC)控制器,ADRC控制器不方便将所有的位置考虑在一起进行设计,所以每个方向上的位置控制器需要单独设计,因而位置控制器具有三个。而对于姿态控制而言,由于采用了模型预测控制,在设计控制器时可以很方便的将三个姿态同时考虑在一起(将三个姿态组成一个矩阵),所以姿态控制器仅有一个。根据所选择的控制器可以得到如3所示的控制单元的原理图。The position controller adopts an Active Disturbance Rejection (ADRC) controller. The ADRC controller is not convenient to design all positions together, so the position controllers in each direction need to be designed separately, so there are three position controllers. For attitude control, due to the use of model predictive control, it is convenient to consider three attitudes at the same time when designing the controller (the three attitudes are formed into a matrix), so there is only one attitude controller. The schematic diagram of the control unit as shown in 3 can be obtained according to the selected controller.

图3与图2的本质是一样的,只是在设计姿态控制器时将三个姿态联合考虑设计成了一个MPC姿态控制器。虽然无人机在x方向上的位置与俯仰角θ耦合,y方向的位置与横滚角Φ耦合,而z方向上的位置与偏航角是解耦的,但是对于位置控制器而言,都采用了ADRC控制器,控制器的设计流程都相同,仅仅只是控制器的输入和输出不相同。所以在介绍位置控制器时本发明以x方向上的位置控制器为例。The essence of Figure 3 is the same as that of Figure 2, except that when designing the attitude controller, the three attitudes are jointly considered and an MPC attitude controller is designed. Although the position of the UAV in the x direction is coupled with the pitch angle θ, the position in the y direction is coupled with the roll angle Φ, and the position in the z direction is decoupled from the yaw angle, but for the position controller, ADRC controllers are used in all of them, and the design process of the controllers is the same, except that the input and output of the controllers are different. Therefore, when introducing the position controller, the present invention takes the position controller in the x direction as an example.

1、x方向位置控制器设计如下:1. The x-direction position controller is designed as follows:

外环位置控制器主要采用自抗扰控制(ADRC),控制器的结构如图4所示,ADRC控制器有3个组成部分:跟踪-微分器(TD)、扩张观测器(ESO)、非线性控制律(NLSEF)。是由于自抗扰控制具有相位滞后的缺陷,所以在ADRC控制器的结构中加入了相位补偿器来对滞后的相位进行补偿。The outer loop position controller mainly adopts Active Disturbance Rejection Control (ADRC). Linear Control Law (NLSEF). Because ADRC has the defect of phase lag, a phase compensator is added to the structure of ADRC controller to compensate the lag phase.

如图4位置控制器的原理图所示,x方向的参考位置xref输入TD后,会得到参考位置的原信号x1和参考位置的微分信号x2。x1与x2经过原信号相位补偿器和微分信号相位补偿器,会得到补偿后的原信号和补偿后的微分信号。ESO会根据无人机数学模型计算出的无人机位置x和位置控制器计算出的参考俯仰角θref观测出无人机的状态z1、z2以及总扰动z3。x1与z1做差可以得到原信号的误差e1,x2与z2做差可以得到微分信号的误差e2,e1与e2经过NLSEF组合计算后得出控制量u0,控制量对观测出的扰动z3进行补偿后最终可以得到姿态控制器的参考输入θrefAs shown in the schematic diagram of the position controller in Figure 4, after the reference position x ref in the x direction is input to TD, the original signal x 1 of the reference position and the differential signal x 2 of the reference position will be obtained. After x 1 and x 2 pass through the original signal phase compensator and the differential signal phase compensator, the compensated original signal and the compensated differential signal will be obtained. The ESO will observe the states z 1 , z 2 and the total disturbance z 3 of the UAV according to the UAV position x calculated by the UAV mathematical model and the reference pitch angle θ ref calculated by the position controller. The difference between x 1 and z 1 can get the error e 1 of the original signal, and the difference between x 2 and z 2 can get the error e 2 of the differential signal. After e 1 and e 2 are combined and calculated by NLSEF, the control quantity u 0 can be obtained. The reference input θ ref of the attitude controller can be finally obtained after compensating the observed disturbance z 3 by the amount of z 3 .

接下来依次介绍TD,相位补偿器,ESO和NLSEF数学模型的设计方法。Next, the design methods of TD, phase compensator, ESO and NLSEF mathematical models are introduced in turn.

首先选取式(3)中x方向的方程

Figure BDA0003562520140000071
引入扰动后可以得到x方向的控制模型:First select the equation in the x direction in equation (3)
Figure BDA0003562520140000071
After the disturbance is introduced, the control model in the x direction can be obtained:

Figure BDA0003562520140000072
Figure BDA0003562520140000072

式中

Figure BDA0003562520140000073
为总扰动,选取状态变量
Figure BDA0003562520140000074
将式(4)转化为状态方程:in the formula
Figure BDA0003562520140000073
For the total disturbance, choose the state variable
Figure BDA0003562520140000074
Transform equation (4) into the equation of state:

Figure BDA0003562520140000081
Figure BDA0003562520140000081

式中x1是x方向的位置,x2是x方向位置的微分,y表示输出也就是x方向的位置。In the formula, x 1 is the position in the x direction, x 2 is the differential of the position in the x direction, and y represents the output, that is, the position in the x direction.

1.1跟踪-微分器(TD)设计:1.1 Tracking-differentiator (TD) design:

跟踪微分器设计时,根据最速综合函数fhan(x1,x2,r0,h0)建立的离散最速反馈系统如下When designing the tracking differentiator, the discrete fastest feedback system established according to the fastest synthesis function fhan(x 1 , x 2 , r 0 , h 0 ) is as follows

Figure BDA0003562520140000082
Figure BDA0003562520140000082

其中fhan(x1,x2,r0,h0)为where fhan(x 1 ,x 2 ,r 0 ,h 0 ) is

Figure BDA0003562520140000083
Figure BDA0003562520140000083

式(6)表示跟踪-微分器(TD)的数学模型,式中v表示跟踪微分器的输入,为x方向上的参考位置xref,x1与x2是跟踪微分器的输出,分别代表跟踪微分器所提取出的参考信号的原信号和参考信号的微分信号。r0与h0是TD模型的参数,h代表采样周期。Equation (6) represents the mathematical model of the tracking-differentiator (TD), where v represents the input of the tracking differentiator, which is the reference position x ref in the x direction, and x 1 and x 2 are the outputs of the tracking differentiator, representing respectively The original signal of the reference signal extracted by the differentiator and the differential signal of the reference signal are tracked. r 0 and h 0 are the parameters of the TD model, and h represents the sampling period.

1.2相位补偿器设计1.2 Phase Compensator Design

由于自抗扰控制中的跟踪-微分器(TD)会对跟踪的信号进行滤波处理,造成跟踪-微分器(TD)输出信号与输入信号之间的相位延迟。所以为了提升轨迹跟踪的性能,需要对经过跟踪-微分器后的信号进行相位补偿。相位补偿时采用结合了fal函数滤波器的相位超前补偿器。补偿器工作的基本原理是将通过跟踪-微分器后获取的微分信号,向前预测λ时间用来补偿原信号。同理,微分信号也存在一定的相位延迟,采用相同的方法对微分信号进行补偿,补偿器的原理图如图5、图6所示。Since the tracking-differentiator (TD) in the active disturbance rejection control will filter the tracked signal, the phase delay between the output signal of the tracking-differentiator (TD) and the input signal is caused. Therefore, in order to improve the performance of trajectory tracking, it is necessary to perform phase compensation on the signal after the tracking-differentiator. A phase advance compensator combined with a fal function filter is used for phase compensation. The basic principle of the work of the compensator is to use the differential signal obtained after the tracking-differentiator to predict the λ time forward to compensate the original signal. Similarly, the differential signal also has a certain phase delay. The same method is used to compensate the differential signal. The schematic diagram of the compensator is shown in Figure 5 and Figure 6.

图5为原信号相位补偿器,TD(图4中)输出的x方向的参考信号的微分信号x2经过fal函数滤波器后得到滤波过后的微分信号x11,再向前预测λ时间后补偿到TD(图4中)提取的原信号x1上,最终可以得到补偿后的原信号X1。图6为微分信号相位补偿器,由于补偿信号时需要用到信号的微分信号,所以在补偿微分信号时,需要用到微分信号的微分信号,所以TD(图4中)提取出的微分信号x2需要再经过一次跟踪-微分器(图6中的TD1),用以提取出xref的微分信号的原信号x21和微分信号的微分信号x22,x22经过fal函数滤波器后可以得到滤波过后的微分信号x23,x23向前预测λ1补偿后补偿到x21上,最终可以得到补偿过后的xref的微分信号X2。下面介绍相位补偿器的数学模型,原信号补偿器模型的离散形式为:Figure 5 is the original signal phase compensator, the differential signal x 2 of the reference signal in the x-direction output by TD (in Figure 4 ) passes through the fal function filter to obtain the filtered differential signal x 11 , and then predicts the λ time forward and compensates On the original signal x 1 extracted by TD (in FIG. 4 ), the compensated original signal X 1 can be finally obtained. Figure 6 is the differential signal phase compensator. Since the differential signal of the signal needs to be used when compensating the signal, the differential signal of the differential signal needs to be used when compensating the differential signal, so the differential signal x extracted by TD (in Figure 4) 2 It needs to go through the tracking-differentiator (TD1 in Figure 6) again to extract the original signal x 21 of the differential signal of x ref and the differential signal x 22 of the differential signal, and x 22 can be obtained after passing through the fal function filter The filtered differential signal x 23 , x 23 is forward predicted λ 1 and compensated to x 21 , and finally the differential signal X 2 of x ref after compensation can be obtained. The mathematical model of the phase compensator is introduced below. The discrete form of the original signal compensator model is:

Figure BDA0003562520140000091
Figure BDA0003562520140000091

式中的前三个公式是跟踪-微分器的公式(图4中的TD),前面已经介绍,这里不做过多的介绍,x11表示滤波后的微分信号,k,a,δ,γ是相位补偿器参数,X1表示补偿后的原信号,λ表示向前预测的时间。The first three formulas in the formula are the formulas of the tracking-differentiator (TD in Figure 4), which have been introduced before and will not be introduced here. x 11 represents the filtered differential signal, k, a, δ, γ is the phase compensator parameter, X 1 represents the original signal after compensation, and λ represents the time of forward prediction.

微分信号补偿器模型的离散形式为:The discrete form of the differential signal compensator model is:

Figure BDA0003562520140000092
Figure BDA0003562520140000092

式中的前三个公式是图4中TD的公式,第四到第六个公式是图6中TD1的公式,x21表示xref的微分信号的原信号,x22表示xref的微分信号的微分信号,x23表示滤波后的xref的微分信号的微分信号,X2是补偿后的微分信号,λ1是向前预测的时间,k1,a1,δ1,γ1是相位补偿器参数。r01,h01是图6中TD1的参数,h1是采样的周期。The first three formulas in the formula are the formulas of TD in Figure 4, the fourth to sixth formulas are the formulas of TD1 in Figure 6, x 21 represents the original signal of the differential signal of x ref , and x 22 represents the differential signal of x ref The differential signal of , x 23 represents the differential signal of the filtered differential signal of x ref , X 2 is the differential signal after compensation, λ 1 is the forward predicted time, k 1 , a 1 , δ 1 , γ 1 are the phases Compensator parameters. r 01 , h 01 are the parameters of TD1 in FIG. 6 , and h 1 is the sampling period.

1.3扩张观测器(ESO)设计1.3 Expansion Observer (ESO) Design

根据

Figure BDA0003562520140000101
首先将总扰动扩张为一个新的状态变量x3 according to
Figure BDA0003562520140000101
First expand the total disturbance to a new state variable x 3

Figure BDA0003562520140000102
Figure BDA0003562520140000102

扩张后新系统为The new system after expansion is

Figure BDA0003562520140000103
Figure BDA0003562520140000103

对扩张后的新系统建立状态观测器Build a state observer for the new expanded system

Figure BDA0003562520140000104
Figure BDA0003562520140000104

从图3中观测器的结构可以看出,观测器有两个输入,三个输出,两个输入分别为θref和x方向的位置x,通过两个输入可以观测出三个输出z1,z2,z3。式中ε1表示观测器观测的状态z1与无人机系统输出的x方向的位置x的误差,z1、z2是观测器观测的系统的状态、z3是观测器观测出的总扰动,β01、β02、β03、δ是控制器的参数,fal(x,a,δ)为非线性函数,定义如下:It can be seen from the structure of the observer in Figure 3 that the observer has two inputs and three outputs. The two inputs are θ ref and the position x in the x-direction, respectively. Through the two inputs, three outputs z 1 can be observed, z 2 , z 3 . In the formula, ε 1 represents the error between the state z 1 observed by the observer and the position x in the x direction output by the UAV system, z 1 and z 2 are the state of the system observed by the observer, and z 3 is the total value observed by the observer. Disturbance, β 01 , β 02 , β 03 , δ are the parameters of the controller, fal(x, a, δ) is a nonlinear function, defined as follows:

Figure BDA0003562520140000105
Figure BDA0003562520140000105

式中,a是一个0-1的常数,δ是一个影响滤波效果的常数。In the formula, a is a constant of 0-1, and δ is a constant that affects the filtering effect.

对状态观测器进行离散化可以得到:Discretizing the state observer gives:

Figure BDA0003562520140000106
Figure BDA0003562520140000106

h代表离散化的时间。h represents the discretization time.

1.4非线性控制律(NLSEF)设计1.4 Nonlinear Control Law (NLSEF) Design

基于TD和相位补偿器我们可以得到x方向的参考信号的原信号和微分信号,通过与ESO观测出的状态做差,我们可以得到原信号的误差与微分信号的误差。NLSEF的目的是将误差信号组合起来得到组合控制律。组合的方式可以是线性组合,也可以是非线性组合。但是,一般非线性组合形成的控制律控制效能优于线性组合,所以在设计控制律时采用非线性组合,非线性组合的函数选取为u0=β1fal(e1,a1,δ)+β2fal(e2,a2,δ)。根据选取的非线性组合设计控制律如下:Based on the TD and the phase compensator, we can obtain the original signal and differential signal of the reference signal in the x-direction. By making a difference with the state observed by ESO, we can obtain the error of the original signal and the error of the differential signal. The purpose of NLSEF is to combine the error signals to obtain a combined control law. The combination can be a linear combination or a non-linear combination. However, the control efficiency of the control law formed by the general nonlinear combination is better than that of the linear combination, so the nonlinear combination is used when designing the control law, and the function of the nonlinear combination is selected as u 01 fal(e 1 ,a 1 ,δ) +β 2 fal(e 2 ,a 2 ,δ). The control law is designed according to the selected nonlinear combination as follows:

Figure BDA0003562520140000111
Figure BDA0003562520140000111

其中e1为原信号误差,通过原信号相位补偿器补偿后得到原信号X1与ESO观测出的状态z1做差得到;e2为微分信号误差,通过微分信号相位补偿器补偿后得到微分信号X2与ESO观测出的状态z2做差得到。u0是组合后形成的控制量,β1、β2、β3、a1、a2、δ是参数。where e 1 is the original signal error, which is obtained by the difference between the original signal X1 and the state z 1 observed by ESO after compensation by the original signal phase compensator; e 2 is the differential signal error, which is compensated by the differential signal phase compensator to obtain the differential signal The difference between X 2 and the state z 2 observed by ESO is obtained. u 0 is the control amount formed after the combination, and β 1 , β 2 , β 3 , a 1 , a 2 , and δ are parameters.

得到控制量u0后,需要对观测出的扰动z3进行补偿,进而得到补偿扰动后的控制量:After the control variable u 0 is obtained, the observed disturbance z 3 needs to be compensated, and then the control variable after compensation of the disturbance is obtained:

Figure BDA0003562520140000112
Figure BDA0003562520140000112

式中θref表示补偿扰动后形成的控制量也就是俯仰角姿态控制器的参考输入,u0为非线性组合计算出的控制量,b0为补偿因子。In the formula, θ ref represents the control amount formed after compensating the disturbance, that is, the reference input of the pitch angle and attitude controller, u 0 is the control amount calculated by the nonlinear combination, and b 0 is the compensation factor.

2姿态控制器设计2 Attitude Controller Design

姿态控制采用模型预测控制器(MPC),在设计姿态控制器时将三个姿态考虑在一起进行设计。选取公式(3)中的姿态方程Attitude control adopts Model Predictive Controller (MPC), and the three attitudes are considered together when designing the attitude controller. Select the attitude equation in formula (3)

Figure BDA0003562520140000113
Figure BDA0003562520140000113

将其改写为状态空间方程的形式,并进行离散化Rewrite it in the form of a state space equation and discretize it

x(k+1)=Ak,tx(k)+Bk,tu(k) (17)x(k+1)=A k,t x(k)+B k,t u(k) (17)

式中

Figure BDA0003562520140000121
in the formula
Figure BDA0003562520140000121

其中ΔT为离散采样时间。x表示系统的状态也就是三个姿态(φ,θ,ψ),u表示无人机系统的输入(U2,U3,U4),也就是姿态控制的输出。Jx,Jy与Jz分别代表无人机在x、y和z方向上的转动惯量。where ΔT is the discrete sampling time. x represents the state of the system, that is, three attitudes (φ, θ, ψ), and u represents the input of the UAV system (U 2 , U 3 , U 4 ), which is the output of attitude control. J x , J y and J z represent the moment of inertia of the UAV in the x, y and z directions, respectively.

将x与u联合在一起扩张为一个新的状态ξ,设定:Expand x and u together into a new state ξ, set:

Figure BDA0003562520140000122
Figure BDA0003562520140000122

式中k|t表示在当前时刻t,预测第k个时刻的量,ξ(k|t)表示第t时刻扩张的状态,x(k|t)表示第t时刻的原状态(φ,θ,ψ),u(k-1|t)表示第t时刻上一个时刻的输入(U2,U3,U4)。In the formula, k|t represents the quantity predicted at the k-th time at the current time t, ξ(k|t) represents the expansion state at the t-th time, and x(k|t) represents the original state (φ, θ) at the t-th time. , ψ), u(k-1|t) represents the input (U 2 , U 3 , U 4 ) at the previous time at time t.

因此可以得到一个新的状态空间方程So a new state space equation can be obtained

Figure BDA0003562520140000123
Figure BDA0003562520140000123

式中ξ表示扩张后的状态,

Figure BDA0003562520140000124
是系统矩阵,
Figure BDA0003562520140000125
是输入矩阵,Δu是控制输入的增量,η是输出,
Figure BDA0003562520140000126
是输出矩阵:where ξ represents the state after expansion,
Figure BDA0003562520140000124
is the system matrix,
Figure BDA0003562520140000125
is the input matrix, Δu is the increment of the control input, η is the output,
Figure BDA0003562520140000126
is the output matrix:

其中:in:

Figure BDA0003562520140000127
Figure BDA0003562520140000127

为了简化计算做出如下的假设In order to simplify the calculation, the following assumptions are made

Figure BDA0003562520140000131
Figure BDA0003562520140000131

如果系统的预测时域是Np,控制时域是Nc,则系统未来的输出Y(t)为If the prediction time domain of the system is N p and the control time domain is N c , the future output Y(t) of the system is

Y(t)=ψtξ(t|t)+ΘΔU(t) (22)Y(t)=ψ t ξ(t|t)+ΘΔU(t) (22)

其中

Figure BDA0003562520140000132
in
Figure BDA0003562520140000132

Figure BDA0003562520140000133
Figure BDA0003562520140000133

得到预测方程后,需要选择合适的目标函数来优化控制增量。在选择目标函数时应该考虑到无人机对姿态的跟踪能力,为了保证飞行的稳定性,控制信号的变化不宜过大,同时还需要保证优化的目标在每个时刻都能求解出可行的解,所以需要在优化的目标中加入松弛因子。After obtaining the prediction equation, it is necessary to select an appropriate objective function to optimize the control increment. When selecting the objective function, the tracking ability of the UAV to the attitude should be taken into account. In order to ensure the stability of the flight, the change of the control signal should not be too large. At the same time, it is also necessary to ensure that the optimized target can be solved at every moment. A feasible solution , so a relaxation factor needs to be added to the optimization objective.

Figure BDA0003562520140000134
Figure BDA0003562520140000134

式中η表示实际的姿态,ηref表示参考姿态,Q与R是权重矩阵,ρ为权重系数,ε为松弛因子。式中的第一项表示对给定轨迹的跟踪能力,第二项是保证控制信号的变化不会过大,第三项是松弛因子,保证优化时能够求解出来结果。where η represents the actual attitude, η ref represents the reference attitude, Q and R are the weight matrix, ρ is the weight coefficient, and ε is the relaxation factor. The first term in the formula represents the tracking ability of a given trajectory, the second term is to ensure that the change of the control signal is not too large, and the third term is the relaxation factor to ensure that the result can be solved during optimization.

根据上面的数学推导,可以采用二次规划的方法计算三个姿态方向上的控制增量ΔU(是个矩阵,包含了三个方向控制增量),进而可以通过控制增量和上一个时刻的控制输入u(k-1|t)计算出当前时刻的控制输入(U2,U3,U4).According to the above mathematical derivation, the quadratic programming method can be used to calculate the control increment ΔU in the three attitude directions (it is a matrix, including three direction control increments), and then the control increment and the control at the previous moment can be calculated through the control increment. Input u(k-1|t) to calculate the current control input (U 2 , U 3 , U 4 ).

同时z方向的位置控制器会根据输入的z方向的参考位置计算出控制输入U1,U1、U2,U3,U4经过控制器分配后可以得到电机的转速。At the same time, the position controller in the z direction will calculate the control input U 1 , U 1 , U 2 , U 3 , and U 4 according to the input reference position in the z direction, and the speed of the motor can be obtained after distribution by the controller.

数学模型位姿求解Mathematical model pose solution

根据虚拟输入我们可以得到电机的参考转速,通过电机控制,能够得到实际的电机转速。根据电机的转速能够求得无人机所受的力和力矩:According to the virtual input, we can get the reference speed of the motor, and through the motor control, we can get the actual motor speed. According to the speed of the motor, the force and torque on the drone can be obtained:

Figure BDA0003562520140000141
Figure BDA0003562520140000141

式中上标B表示机体坐标系,FB表示无人机受到的总拉力,G=[00mg]T表示重力,

Figure BDA0003562520140000142
表示地面坐标系到机体坐标系的旋转矩阵,TB表示无人机受到的拉力,
Figure BDA0003562520140000143
表示无人机受到的空气阻力。MB表示无人机受到的总力矩,
Figure BDA0003562520140000144
表示陀螺力矩,
Figure BDA0003562520140000145
表示螺旋桨在机体轴上产生的力矩,
Figure BDA0003562520140000146
表示气动力矩。In the formula, the superscript B represents the body coordinate system, F B represents the total pulling force of the drone, G=[00mg] T represents the gravity,
Figure BDA0003562520140000142
Represents the rotation matrix from the ground coordinate system to the body coordinate system, T B represents the pulling force of the drone,
Figure BDA0003562520140000143
Indicates the air resistance experienced by the drone. M B represents the total moment received by the UAV,
Figure BDA0003562520140000144
represents the gyroscopic moment,
Figure BDA0003562520140000145
represents the torque generated by the propeller on the body shaft,
Figure BDA0003562520140000146
Represents aerodynamic torque.

无人机受到的拉力TB求解过程如下:The solution process of the pulling force T B received by the UAV is as follows:

Figure BDA0003562520140000147
Figure BDA0003562520140000147

无人机受到的空气阻力

Figure BDA0003562520140000148
的求解过程如下:Air resistance on drones
Figure BDA0003562520140000148
The solution process is as follows:

Figure BDA0003562520140000149
Figure BDA0003562520140000149

式中u,v,w表示无人机在x,y,z三个方向上的相对气流速度,cd是空气阻力系数。In the formula, u, v, w represent the relative airflow velocity of the UAV in the three directions of x, y, and z, and c d is the air resistance coefficient.

陀螺力矩

Figure BDA00035625201400001410
的计算过程如下:Gyroscopic moment
Figure BDA00035625201400001410
The calculation process is as follows:

Figure BDA00035625201400001411
Figure BDA00035625201400001411

式中JRP表示电机转子和螺旋桨绕轴转动的总转动惯量,nr表示螺旋桨的个数,k表示螺旋桨的编号,

Figure BDA00035625201400001412
表示第k个螺旋桨的角速度,ωyb与ωxb分别表示绕机体y轴旋转角速度与绕机体x轴旋转角速度。In the formula, J RP represents the total moment of inertia of the motor rotor and the propeller rotating around the shaft, n r represents the number of propellers, k represents the number of the propeller,
Figure BDA00035625201400001412
represents the angular velocity of the k-th propeller, and ω yb and ω xb represent the angular velocity of rotation around the y-axis of the body and the angular velocity of rotation around the x-axis of the body, respectively.

螺旋桨在机体轴上产生的力矩

Figure BDA0003562520140000151
计算过程如下The torque generated by the propeller on the body shaft
Figure BDA0003562520140000151
The calculation process is as follows

Figure BDA0003562520140000152
Figure BDA0003562520140000152

气动力矩的计算过程如下:The calculation process of aerodynamic torque is as follows:

Figure BDA0003562520140000153
Figure BDA0003562520140000153

式中ωx,ωy,ωz表示相对空气的转速,近似为绕机体三个轴转动的角速度,cdm是阻尼力矩系数。In the formula, ω x , ω y , and ω z represent the rotational speed of the relative air, which is approximately the angular velocity around the three axes of the body, and c dm is the damping moment coefficient.

计算得出无人机的受到的力和力矩后,可以根据无人机的运动学模型和动力学模型计算出无人机的位置和姿态:After calculating the force and moment of the UAV, the position and attitude of the UAV can be calculated according to the kinematic model and dynamic model of the UAV:

Figure BDA0003562520140000154
Figure BDA0003562520140000154

式中上标e表示地面坐标系,上标B表示机体坐标系,p表示无人机的位置,v表示速度,ωb表示机体旋转角速度,

Figure BDA0003562520140000155
表示四元数,J表示转动惯量。In the formula, the superscript e represents the ground coordinate system, the superscript B represents the body coordinate system, p represents the position of the UAV, v represents the speed, ω b represents the angular velocity of the body rotation,
Figure BDA0003562520140000155
represents the quaternion, and J represents the moment of inertia.

本发明还提供了一种基于改进的自抗扰的四旋翼无人机轨迹跟踪控制方法,包括:The present invention also provides a trajectory tracking control method for the quadrotor UAV based on the improved active disturbance rejection, comprising:

步骤1、对四旋翼无人机进行数学建模。Step 1. Mathematically model the quadrotor UAV.

步骤2、获取四旋翼无人机的x方向参考轨迹、y方向参考轨迹、z方向参考轨迹以及参考偏航角。Step 2. Obtain the reference trajectory in the x direction, the reference trajectory in the y direction, the reference trajectory in the z direction, and the reference yaw angle of the quadrotor UAV.

步骤3、根据所述x方向参考轨迹、所述y方向参考轨迹以及所述z方向参考轨迹,采用自抗扰控制器分别计算俯仰角、横滚角以及第一虚拟输入。Step 3. According to the x-direction reference trajectory, the y-direction reference trajectory, and the z-direction reference trajectory, an active disturbance rejection controller is used to calculate the pitch angle, the roll angle, and the first virtual input, respectively.

步骤4、根据所述横滚角、所述俯仰角以及所述参考偏航角,采用模型预测控制器分别计算第二虚拟输入、第三虚拟输入以及第四虚拟输入。Step 4. According to the roll angle, the pitch angle and the reference yaw angle, use a model predictive controller to calculate the second virtual input, the third virtual input and the fourth virtual input, respectively.

步骤5、根据所述第一虚拟输入、所述第二虚拟输入、所述第三虚拟输入以及所述第四虚拟输入,计算参考转速。Step 5: Calculate a reference rotational speed according to the first virtual input, the second virtual input, the third virtual input and the fourth virtual input.

步骤6、根据所述参考转速,基于四旋翼无人机数学模型计算无人机的方向位置和姿态位置,实现四旋翼无人机的轨迹跟踪控制。Step 6: According to the reference rotation speed, calculate the direction position and attitude position of the UAV based on the mathematical model of the quadrotor UAV, so as to realize the trajectory tracking control of the quadrotor UAV.

本发明具有以下优点:The present invention has the following advantages:

1、相较于传统的PID控制,本发明提出的控制系统抵抗扰动的能力更强,鲁棒性更高。原因:在对无人机进行控制时内外环都采用了鲁棒性较强的控制器,外环采用的自抗扰控制能够实时估计出内外扰动并加以补偿,提高了无人机对内外扰动的抵抗能力。1. Compared with the traditional PID control, the control system proposed by the present invention has stronger ability to resist disturbance and higher robustness. Reason: When controlling the UAV, both the inner and outer loops use a robust controller. The active disturbance rejection control used in the outer loop can estimate the internal and external disturbances in real time and compensate them, which improves the UAV's ability to respond to internal and external disturbances. resistance.

2、相较于传统的ADRC轨迹跟踪的精度更高。原因:传统的ADRC在控制的过程中存在相位滞后的缺陷。本发明所提出的控制系统对滞后的相位进行了补偿,提高了轨迹跟踪的精度。2. Compared with the traditional ADRC trajectory tracking, the accuracy is higher. Reason: The traditional ADRC has the defect of phase lag in the control process. The control system proposed by the invention compensates the delayed phase and improves the accuracy of trajectory tracking.

本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; meanwhile, for those skilled in the art, according to the present invention There will be changes in the specific implementation and application scope. In conclusion, the contents of this specification should not be construed as limiting the present invention.

Claims (9)

1. A quad-rotor unmanned aerial vehicle trajectory tracking control system based on improved active disturbance rejection, comprising:
the modeling unit is used for carrying out mathematical modeling and linearization processing on the quad-rotor unmanned aerial vehicle to obtain a linear model of the unmanned aerial vehicle;
the parameter giving unit is used for giving an x-direction reference track, a y-direction reference track, a z-direction reference track and a reference yaw angle of the quad-rotor unmanned aerial vehicle;
the control unit comprises a position outer ring module and an attitude inner ring module, wherein the position outer ring module is used for calculating a pitch angle according to the x-direction reference track, a roll angle according to the y-direction reference track and a first virtual input according to the z-direction reference track on the basis of the unmanned aerial vehicle linear model; the attitude inner loop module is used for calculating a second virtual input, a third virtual input and a fourth virtual input according to the roll angle, the pitch angle and the reference yaw angle based on the unmanned aerial vehicle linear model;
a reference rotation speed calculation unit configured to calculate a reference rotation speed according to the first virtual input, the second virtual input, the third virtual input, and the fourth virtual input;
and the trajectory tracking control unit is used for calculating the position and the posture of the unmanned aerial vehicle by adopting a kinematics model and a dynamics model of the unmanned aerial vehicle according to the reference rotating speed, so that trajectory tracking control of the quad-rotor unmanned aerial vehicle is realized.
2. The improved active disturbance rejection based quad-rotor drone trajectory tracking control system according to claim 1, wherein said drone linear model is expressed as follows:
Figure FDA0003562520130000011
where m is the unmanned aerial vehicle mass, Ix、Iy、IzThe moment of inertia of the unmanned aerial vehicle in the directions of x, y and z, g is the gravity acceleration, phi is the roll angle, theta is the pitch angle,
Figure FDA0003562520130000012
in order to obtain the roll angle acceleration,
Figure FDA0003562520130000013
for the purpose of pitch angular acceleration,
Figure FDA0003562520130000014
in order to determine the yaw angular acceleration,
Figure FDA0003562520130000015
is the acceleration in the x-direction and,
Figure FDA0003562520130000016
is the acceleration in the y-direction and,
Figure FDA0003562520130000017
acceleration in the z direction, U1、U2、U3、U4Respectively a first virtual input, a second virtual input, a third virtual input, and a fourth virtual input.
3. The improved active disturbance rejection based quad-rotor drone trajectory tracking control system according to claim 1, wherein said position outer loop module comprises:
the x-direction position controller is used for calculating a pitch angle according to the x-direction reference track based on the unmanned aerial vehicle linear model;
the y-direction position controller is used for calculating a roll angle according to the y-direction reference track based on the unmanned aerial vehicle linear model;
and the z-direction position controller is used for calculating a first virtual input according to the z-direction reference track based on the unmanned aerial vehicle linear model.
4. The improved active-disturbance-rejection based quad-rotor unmanned aerial vehicle trajectory tracking control system of claim 3, wherein the x-direction position controller, the y-direction position controller, and the z-direction position controller are all active-disturbance-rejection controllers.
5. The improved active disturbance rejection based quad-rotor drone trajectory tracking control system according to claim 1, wherein said pose inner loop module employs a model predictive controller.
6. A quad-rotor drone trajectory tracking control system based on improved active disturbance rejection according to claim 4, wherein the active disturbance rejection controller includes a tracking-differentiator, an extended observer, a nonlinear control law and a phase compensator.
7. The improved active disturbance rejection based quad-rotor drone trajectory tracking control system according to claim 6, wherein said phase compensator employs a phase lead compensator incorporating a fal function filter.
8. The improved active disturbance rejection based quad-rotor drone trajectory tracking control system according to claim 1, wherein said reference rotation speed is calculated as follows:
Figure FDA0003562520130000021
wherein, ω is1、ω2、ω3、ω4Be the reference rotational speed of four propellers respectively, b is the lift coefficient of rotor, and d is the resistance coefficient of rotor, and l is the distance of rotor pivot to unmanned aerial vehicle barycenter, U1、U2、U3、U4Respectively a first virtual input, a second virtual input, a third virtual input, and a fourth virtual input.
9. A trajectory tracking control method for a quad-rotor unmanned aerial vehicle based on improved active disturbance rejection is characterized by comprising the following steps:
performing mathematical modeling on the quad-rotor unmanned aerial vehicle;
acquiring an x-direction reference track, a y-direction reference track, a z-direction reference track and a reference yaw angle of the quad-rotor unmanned aerial vehicle;
calculating a pitch angle, a roll angle and a first virtual input by adopting an active disturbance rejection controller according to the x-direction reference track, the y-direction reference track and the z-direction reference track;
respectively calculating a second virtual input, a third virtual input and a fourth virtual input by adopting a model prediction controller according to the roll angle, the pitch angle and the reference yaw angle;
calculating a reference rotation speed according to the first virtual input, the second virtual input, the third virtual input and the fourth virtual input;
according to refer to the rotational speed, calculate unmanned aerial vehicle's direction position and gesture position based on four rotor unmanned aerial vehicle mathematical model, realize four rotor unmanned aerial vehicle's trajectory tracking control.
CN202210298295.XA 2022-03-24 2022-03-24 Improved active disturbance rejection based trajectory tracking control system for quad-rotor unmanned aerial vehicle Pending CN114564038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210298295.XA CN114564038A (en) 2022-03-24 2022-03-24 Improved active disturbance rejection based trajectory tracking control system for quad-rotor unmanned aerial vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210298295.XA CN114564038A (en) 2022-03-24 2022-03-24 Improved active disturbance rejection based trajectory tracking control system for quad-rotor unmanned aerial vehicle

Publications (1)

Publication Number Publication Date
CN114564038A true CN114564038A (en) 2022-05-31

Family

ID=81719571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210298295.XA Pending CN114564038A (en) 2022-03-24 2022-03-24 Improved active disturbance rejection based trajectory tracking control system for quad-rotor unmanned aerial vehicle

Country Status (1)

Country Link
CN (1) CN114564038A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118276444A (en) * 2024-03-29 2024-07-02 国网宁夏电力有限公司石嘴山供电公司 Path tracking control method for quadrotor UAV based on nonlinear model prediction
CN118859734A (en) * 2024-09-27 2024-10-29 石家庄铁道大学 Improved Active Disturbance Rejection Control Method for Virtual Marshalling of High-Speed Trains Based on GRO Algorithm

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272421A (en) * 2017-08-10 2017-10-20 广东工业大学 A kind of Active Disturbance Rejection Control system and method
CN112346470A (en) * 2020-10-29 2021-02-09 中国地质大学(武汉) Four-rotor attitude control method based on improved active disturbance rejection control

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272421A (en) * 2017-08-10 2017-10-20 广东工业大学 A kind of Active Disturbance Rejection Control system and method
CN112346470A (en) * 2020-10-29 2021-02-09 中国地质大学(武汉) Four-rotor attitude control method based on improved active disturbance rejection control

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
刘磊,等: "基于改进跟踪微分器的进气压力控制技术研究", 《自动化仪表》, vol. 41, no. 3, 31 March 2020 (2020-03-31), pages 47 - 52 *
孟晨;张金鹏;林辉;吴了泥;: "基于自抗扰技术的多旋翼姿态控制", 航空兵器, no. 04, 15 August 2020 (2020-08-15), pages 33 - 38 *
朱家远,等: "四旋翼无人机自抗扰飞行控制器研究", 《应用科技》, vol. 46, no. 1, 31 January 2019 (2019-01-31), pages 29 - 35 *
王婉婷;郭劲;姜振华;王挺峰;: "光电跟踪自抗扰控制技术研究", 红外与激光工程, no. 02, 25 February 2017 (2017-02-25), pages 1 - 8 *
范云生;曹亚博;赵永生;: "四旋翼飞行器轨迹跟踪控制器的设计与验证", 仪器仪表学报, no. 03, 15 March 2017 (2017-03-15), pages 741 - 749 *
韦为, 吴艳,等: "基于改进自抗扰的四旋翼无人机轨迹跟踪控制", 《电工电能新技术》, vol. 42, no. 5, 31 May 2023 (2023-05-31), pages 1 - 13 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118276444A (en) * 2024-03-29 2024-07-02 国网宁夏电力有限公司石嘴山供电公司 Path tracking control method for quadrotor UAV based on nonlinear model prediction
CN118276444B (en) * 2024-03-29 2024-09-10 国网宁夏电力有限公司石嘴山供电公司 Four-rotor unmanned aerial vehicle path tracking control method based on nonlinear model prediction
CN118859734A (en) * 2024-09-27 2024-10-29 石家庄铁道大学 Improved Active Disturbance Rejection Control Method for Virtual Marshalling of High-Speed Trains Based on GRO Algorithm

Similar Documents

Publication Publication Date Title
Derafa et al. Super twisting control algorithm for the attitude tracking of a four rotors UAV
Chen et al. A novel nonlinear resilient control for a quadrotor UAV via backstepping control and nonlinear disturbance observer
Mokhtari et al. A new robust control for minirotorcraft unmanned aerial vehicles
CN112346470A (en) Four-rotor attitude control method based on improved active disturbance rejection control
CN111026160B (en) A kind of quadrotor UAV trajectory tracking control method
CN112558621A (en) Decoupling control-based flying mechanical arm system
CN111459188B (en) Quaternion-based multi-rotor nonlinear flight control method
Cai et al. Quadrotor waypoint-tracking control under exogenous disturbances based on equivalent-input-disturbance approach
Li et al. Trajectory tracking of a quadrotor using extend state observer based U-model enhanced double sliding mode control
CN110703603B (en) A control method of multi-layer recursive convergent neural network controller for unmanned aerial vehicle
CN114564038A (en) Improved active disturbance rejection based trajectory tracking control system for quad-rotor unmanned aerial vehicle
CN111026146A (en) Attitude control method of a composite wing vertical take-off and landing unmanned aerial vehicle
CN112965512A (en) Unmanned aerial vehicle wind-resistant control method based on propeller model
Zhu et al. Trajectory linearization control for a miniature unmanned helicopter
Khadhraoui et al. Barrier Lyapunov function and adaptive backstepping-based control of a quadrotor UAV
Brahim et al. Finite time adaptive smc for uav trajectory tracking under unknown disturbances and actuators constraints
CN111338369A (en) Multi-rotor flight control method based on nonlinear inverse compensation
Yu et al. Disturbance observer-based autonomous landing control of unmanned helicopters on moving shipboard
Song et al. Research on attitude control of quadrotor uav based on active disturbance rejection control
Zhang Application of PID simulation control mode in quadrotor aircraft
CN111857171B (en) Unmanned aerial vehicle control method based on quality self-adaptive multilayer neural network
Abrougui et al. Flight Controller Design Based on Sliding Mode Control for Quadcopter Waypoints Tracking
Kumar et al. Exponential reaching law based robust trajectory tracking for unmanned aerial vehicles
Housny et al. Robust sliding mode control for quadrotor UAV
CN116088549A (en) Tailstock type vertical take-off and landing unmanned aerial vehicle attitude control method

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