The invention provides a flying
robot trajectory control method and
system based on data-driven generalized iterative prediction. The method comprises the following steps: S1, constructing a flying
robot data-driven model; s2, by introducing a nominal dynamic
linearization system, decoupling pseudo partial derivative
estimation of the
system from external disturbance, and estimating a pseudo partial derivative parameter at the current moment; s3, designing a
model prediction framework, and predicting pseudo-partial derivatives of multiple iterations in the future by using historical pseudo-partial derivative parameters in combination with multi-layer
recursion through a multi-stage hierarchical prediction method; s4, designing a generalized iterative prediction controller, establishing a
performance index function containing tracking errors and control input increments, and solving an
optimal control input sequence in real time through an optimization
algorithm to realize
position control of the flying
robot; and S5, designing an iterative extended
state observer, estimating external disturbance in the system, introducing a disturbance compensation item into a control law, and enhancing the robustness and anti-disturbance capability of the system in an interference environment.