The invention discloses a
tailstock type unmanned aerial vehicle hovering stability control method based on PID and thrust compensation, and the method comprises the following steps: S1,
system parameters and fixed PID parameters are initialized in a Simulink
simulation environment, the
system parameters comprise core parameters such as a motor arm of force, control surface efficiency and maximum thrust, and the PID parameters employ a pre-debugged height loop optimal value; s2, acquiring real-time
pitch angle, roll angle and height data of the unmanned aerial vehicle in the Simulink
simulation model, and forming eight-dimensional state variables including height, attitude angle and corresponding rate; s3, calculating the vertical
thrust efficiency based on the attitude angle obtained through
simulation, dynamically correcting the basic thrust output by the fixed PID according to an efficiency threshold value, obtaining the compensated total thrust, and limiting the compensated total thrust in a safe range; s4, distributing the compensated total thrust to a left motor and a right motor, distributing a control surface
deflection angle by combining
attitude control torque, and synchronously performing amplitude limiting protection on the motor thrust and the control surface
deflection angle; s5, state differential is calculated through a simplified dynamic model built in the Simulink; and S6, updating the
state variable, and feeding back to the fixed PID to form closed-
loop control to realize hovering stable control. According to the method, direct
verification can be carried out in a Simulink simulation environment, the problem that the height is out of control when the attitude angle is not zero can be solved without modifying an existing control framework, the stability of the hovering height is guaranteed, and the method meets the low-cost
engineering development requirement of small and medium-sized
tailstock type unmanned aerial vehicles.