Abstract: This paper presents a nonlinear model predictive control (NMPC) method combined with a discrete-time nonlinear disturbance observer (NDOB) for attitude tracking of fixed-wing drones. The proposed approach addresses actuator constraints, model uncertainties, and unknown external disturbances. A discrete-time NDOB with an adaptive term is designed to estimate the lumped disturbance, and the estimated disturbance is integrated into the NMPC framework to enhance robustness. Stability is proved via Lyapunov analysis, and simulations demonstrate superior tracking accuracy compared to existing methods.
1. Introduction
Fixed-wing drones are widely used in various applications due to their long endurance and high speed. However, attitude control remains challenging due to actuator saturation, model uncertainties, and environmental disturbances. Nonlinear model predictive control (NMPC) is an effective technique for handling constraints and optimizing performance over a finite horizon. Nevertheless, NMPC relies on an accurate model; model mismatches degrade its performance. Disturbance observers (DOBs) can estimate lumped disturbances and compensate for them. Existing DOBs are mostly continuous-time, but practical implementation requires discrete-time design. In this work, we propose a discrete-time NDOB with an adaptive bound estimation to improve estimation accuracy, and we embed it into an NMPC framework for fixed-wing drones. The main contributions are:
- Design of a discrete-time NDOB with an adaptive term that estimates the upper bound of lumped disturbance.
- Integration of the discrete-time NDOB with NMPC, ensuring consistency in the discrete domain and easy implementation.
- Enhancement of robustness by modifying the nominal model in NMPC using disturbance estimates.
2. Dynamics Model
The attitude kinematics and dynamics of a fixed-wing drone are described by:
$$
\begin{aligned}
\dot{\phi} &= p + q\sin\phi\tan\theta + r\cos\phi\tan\theta \\
\dot{\theta} &= q\cos\phi – r\sin\phi \\
\dot{\psi} &= (q\sin\phi + r\cos\phi)\sec\theta \\
\dot{p} &= c_1 p + c_2 r q + c_3 \bar{L} + c_4 N \\
\dot{q} &= c_5 p r – c_6 (p^2 – r^2) + c_7 M \\
\dot{r} &= c_8 p – c_9 r q + c_4 \bar{L} + c_9 N
\end{aligned}
$$
where \([\phi,\theta,\psi]^T\) are roll, pitch, yaw angles; \([p,q,r]^T\) are angular rates; \(c_i\) are inertia coefficients; \(\bar{L},M,N\) are aerodynamic moments. The aerodynamic moments are given by:
$$
\begin{aligned}
\bar{L} &= 0.5\rho V^2 S b \, C_l(\cdot) \\
M &= 0.5\rho V^2 S c \, C_m(\cdot) \\
N &= 0.5\rho V^2 S b \, C_n(\cdot)
\end{aligned}
$$
where \(\rho\) is air density, \(S\) wing area, \(b\) span, \(c\) mean aerodynamic chord, and \(C_{(\cdot)}\) are nonlinear functions of states and control inputs (aileron \(\delta_a\), elevator \(\delta_e\), rudder \(\delta_r\)). The state vector is \(\mathbf{x}=[\phi,\theta,\psi,p,q,r,V,\alpha,\beta]^T\), and control vector \(\mathbf{u}=[\delta_a,\delta_e,\delta_r,F_T]^T\). Lumped disturbances due to aerodynamic coefficient errors and actuator biases are modeled as \(\mathbf{d}=[d_1,d_2,d_3]^T\) acting on the angular rate dynamics:
$$
\dot{\mathbf{x}}_2 = \mathbf{f}_2(\mathbf{x}) + \mathbf{g}_2(\mathbf{x})\mathbf{u}_1 + \mathbf{d}
$$
where \(\mathbf{x}_2=[p,q,r]^T\) and \(\mathbf{u}_1=[\delta_a,\delta_e,\delta_r]^T\). The disturbances are bounded: \(|d_i| < p_i\) with unknown \(p_i\).
3. Disturbance Observer Design
To estimate the unknown \(\mathbf{d}\), we propose a discrete-time NDOB with an adaptive term for the disturbance upper bound. Define auxiliary variables \(\pi_i(k) = x_{2,i}(k) – z_i(k)\) and update laws:
$$
\begin{aligned}
z_i(k+1) &= z_i(k) + \Delta t \left[ \lambda_{1i} \pi_i(k) + \lambda_{2i} \frac{\pi_i(k)}{\sqrt{\pi_i^2(k) + \mu_i^2}} + g_{2,i}(k) u_{1,i}(k) + f_{2,i}(k) + \hat{p}_i(k) \tanh\left(\frac{\pi_i(k)}{\gamma_i}\right) \right] \\
\hat{p}_i(k+1) &= \hat{p}_i(k) + \Delta t \left[ m_i \pi_i(k) \hat{p}_i(k) – n_i \hat{p}_i^3(k) \right]
\end{aligned}
$$
where \(\Delta t\) is the sampling period, \(\lambda_{1i},\lambda_{2i},\mu_i,\gamma_i,m_i,n_i>0\) are design parameters. The disturbance estimate is:
$$
\hat{d}_i(k) = \lambda_{1i} \pi_i(k) + \lambda_{2i} \frac{\pi_i(k)}{\sqrt{\pi_i^2(k) + \mu_i^2}} + z_i(k) + \hat{p}_i(k) \tanh\left(\frac{\pi_i(k)}{\gamma_i}\right)
$$
The estimation error is \(\tilde{d}_i(k) = d_i(k) – \hat{d}_i(k) = (\pi_i(k+1)-\pi_i(k))/\Delta t\). The following theorem establishes convergence.
Theorem 1: Assume that the differences of \(\pi_i\) and \(\hat{p}_i\) are bounded by an unknown constant \(\psi_i\). Then the estimation errors of \(\hat{p}_i\) and \(\pi_i\) converge to a neighborhood of zero.
Proof: Consider Lyapunov function \(V_d(k) = \sum_{i=1}^3 [\pi_i^2(k) + \tilde{p}_i^2(k)]\). Using inequalities (Young’s, hyperbolic tangent properties, etc.), the difference \(\Delta V_d\) is shown to be negative outside a compact set, implying convergence.
Key inequalities used:
$$
\begin{aligned}
&\frac{x^2}{\sqrt{x^2+\mu^2}} \le |x| \le \frac{x^2}{2} + \frac{\mu}{2} \\
&|x| – x\tanh(x/\gamma) < \kappa\gamma, \quad \kappa = 0.2785 \\
&x^m y^n \le \frac{m}{m+n} x^{m+n} + \frac{n}{m+n} y^{m+n}
\end{aligned}
$$
4. Controller Design
4.1 Terminal Constraint Set
The linearized system around equilibrium is \((\mathbf{x}(k+1)=\mathbf{A}\mathbf{x}(k)+\mathbf{B}\mathbf{u}(k))\). Assume a stabilizing feedback \(\mathbf{u}= \mathbf{K}\mathbf{x}\) exists. Choose \(\mathbf{P} = \mathbf{P}^T>0\) solving:
$$
(\mathbf{A}+\mathbf{B}\mathbf{K})^T \mathbf{P} (\mathbf{A}+\mathbf{B}\mathbf{K}) – \mathbf{P} + \mathbf{Q} + \mathbf{K}^T \mathbf{R} \mathbf{K} = -\varepsilon \mathbf{I}
$$
with \(\varepsilon>0\). The terminal region is \(\Omega = \{ \mathbf{x} \in \mathbb{X} : \mathbf{x}^T\mathbf{P}\mathbf{x} \le a \}\) for some \(a>0\). The terminal controller is \(\mathbf{u} = \mathbf{K}\mathbf{x}\).
4.2 Optimal Control Problem
The discrete-time system including disturbance compensation is:
$$
\mathbf{x}(k+1) = \mathbf{F}(\mathbf{x}(k),\mathbf{u}(k)) + \begin{bmatrix} \mathbf{0}_{3\times1} \\ \hat{\mathbf{d}}(k) \\ \mathbf{0}_{3\times1} \end{bmatrix}
$$
where \(\hat{\mathbf{d}}\) is the NDOB estimate. The cost function over prediction horizon \(N_p\) is:
$$
J(k) = \sum_{i=0}^{N_p-1} \left[ \|\mathbf{x}_e(k+i|k)\|_{\mathbf{Q}}^2 + \|\mathbf{u}(k+i)\|_{\mathbf{R}}^2 \right] + \|\mathbf{x}(k+N_p|k)\|_{\mathbf{P}}^2
$$
where \(\mathbf{x}_e = \mathbf{x} – \mathbf{x}_{ref}\). The optimization problem is:
$$
\begin{aligned}
\min_{\mathbf{U}(k)} & \quad J(k) \\
\text{s.t.} & \quad \mathbf{x}(k+i+1|k) = \mathbf{F}(\mathbf{x}(k+i|k),\mathbf{u}(k+i)) + \hat{\mathbf{d}}(\cdot) \\
& \quad \mathbf{u}(k+i) \in \mathbb{U}, \quad i=0,\dots,N_p-1 \\
& \quad \mathbf{x}(k+i|k) \in \mathbb{X}, \quad i=1,\dots,N_p-1 \\
& \quad \mathbf{x}(k+N_p|k) \in \Omega
\end{aligned}
$$
Only the first control input \(\mathbf{u}(k)\) is applied, and the process repeats at each sampling instant.
4.3 Feasibility and Stability
Theorem 2: If the optimization is feasible at \(k=0\), then it is feasible for all \(k>0\).
Proof (Induction): At time \(k\), assume feasible solution \(\mathbf{U}^*(k)\). Shift the sequence: the candidate \(\mathbf{U}(k+1) = [\mathbf{u}^*(k+1),\dots,\mathbf{u}^*(k+N_p-1),\mathbf{K}\mathbf{x}(k+N_p|k)]\) is feasible because \(\mathbf{x}(k+N_p|k)\in\Omega\) and \(\mathbf{K}\mathbf{x}\in\mathbb{U}\) by terminal region invariance.
Theorem 3: Neglecting estimation errors, the closed-loop system is asymptotically stable.
Proof: Choose the optimal cost as Lyapunov function \(V(\mathbf{x}(k),k)=J^*(k)\). Using the candidate control, the difference:
$$
V(\mathbf{x}(k+1),k+1) – V(\mathbf{x}(k),k) \le -\|\mathbf{x}_e(k|k)\|_{\mathbf{Q}}^2 – \|\mathbf{u}(k)\|_{\mathbf{R}}^2 \le 0
$$
Thus asymptotic stability follows.
5. Simulation Results
We validate the proposed method on the fixed-wing drone model from [19]. The actuator dynamics are second-order (natural frequency 100 rad/s, damping 0.75) with saturation at ±25° and rate limit 120°/s. Model mismatch: aerodynamic coefficients are scaled by 30% and all actuators have a 0.7° bias. The NDOB parameters: \(\lambda_{1i}=45\), \(\lambda_{2i}=0.5\), \(\mu_i=0.5\), \(\gamma_i=0.5\), \(m_i=10\), \(n_i=0.01\). The NMPC parameters: sampling time 50 ms, \(\mathbf{Q}=\text{diag}(3,3,3,0,0,0,3,0,0)\), \(\mathbf{R}=60\mathbf{I}\), \(\mathbf{P}=\text{diag}(3,0.01,0.01,3,0.01,0.01,3,0.01,0.01)\), \(N_p=2\), \(N_c=1\).
We compare our NDOB (proposed) with two existing continuous-time NDOBs adapted to discrete-time: Method 1 from [13] and Method 2 from [25]. Open-loop tests (observer outputs not fed back) show disturbance estimation performance.

The estimation root-mean-square errors (RMSE) are summarized in Table 1. Our method reduces estimation error significantly, especially for \(d_2\).
| Disturbance | Proposed | Method 1 | Improvement vs M1 (%) | Method 2 | Improvement vs M2 (%) |
|---|---|---|---|---|---|
| \(d_1\) | 0.0747 | 0.4093 | 81.75 | 0.1653 | 54.81 |
| \(d_2\) | 0.0053 | 0.1317 | 95.98 | 0.0770 | 93.12 |
| \(d_3\) | 0.1113 | 0.6392 | 82.59 | 0.2344 | 52.52 |
Next, we integrate the NDOB estimates into NMPC and compare attitude tracking. The reference signals include step and ramp changes. The attitude tracking errors are given in Table 2.
| Attitude | Proposed | Method 1 | Improvement vs M1 (%) | Method 2 | Improvement vs M2 (%) |
|---|---|---|---|---|---|
| Roll | 0.3036 | 0.3656 | 16.96 | 0.3092 | 1.81 |
| Pitch | 0.6025 | 0.6129 | 1.70 | 0.6051 | 0.43 |
| Yaw | 0.0373 | 0.0952 | 60.82 | 0.0471 | 20.81 |
The results show that our method achieves smaller tracking errors, especially in yaw. During transient periods (e.g., at 5 s and 10 s when actuator bias changes), the proposed NDOB captures rapid disturbances more effectively, reducing overshoot and settling time.
6. Conclusion
This paper presented a discrete-time nonlinear disturbance observer combined with nonlinear model predictive control for fixed-wing drones. The adaptive NDOB accurately estimates lumped disturbances, and the NMPC compensates for them, achieving robust attitude tracking. Simulations confirmed that the proposed method outperforms existing techniques in both disturbance estimation and tracking accuracy. Future work will focus on real-time implementation and extension to trajectory tracking.
