Manuscript Offprint
arXiv:2610.35165How Tuning, Reference Preview, Actuator Modeling, and Fallback Policies Change Quadrotor Controller Comparisons: A Reproducible Simulation Study
ABSTRACT
Quadrotor controller comparisons commonly report a single tracking error, although the resulting ranking also depends on tuning effort, reference information, actuator prediction, optimizer fallback, and command timing. We quantify these effects for cascade PID, hover LQR, boundary-layer sliding-mode control (BL-SMC), linear MPC with LQR fallback (LMPC-F), a preview-enabled LMPC-F, and a geometric controller on a common nonlinear plant with rotor gyroscopic coupling, motor lag, and saturation. A primary study (556 episodes at 50 Hz) combines matched twelve-candidate tuning, 400 paired evaluation episodes, and a 48-cell MPC factorial; a confirmation study (1462 episodes) repeats the evaluation on 50 fresh realizations with tuning budgets of 12, 24, and 48 candidates. A matched twelve-candidate tuning protocol changed the mean-RMSE ordering obtained with the fixed baseline settings, moving BL-SMC from last to first; the new ordering recurred on the fresh realizations, and a 48-candidate budget left it unchanged. Reference preview substantially reduced MPC tracking error and, on the figure-eight task, removed fallback activity. On an abrupt step, the outcome depended on the interplay between fallback policy, predictor, and actuator authority. Command timing also changed the outcome: replaying measured command-call delays terminated three of four nominal MPC configurations on a desktop computer and all four on a Raspberry Pi 5, whereas capping the solver at 100 iterations removed every deadline miss in the tested nominal timing profiles. Controller rankings therefore depend not only on tracking accuracy but also on the tuning protocol, reference information, fallback behavior, and implementation timing. We propose a reporting checklist covering tracking accuracy, tuning effort, completion and failure rates, fallback activity, applied-input variation, and command timing.
Keywords Quadrotor · trajectory tracking · model predictive control · controller benchmarking · actuator dynamics · fallback control · computation delay · reproducibility
Quadrotor trajectory tracking is inherently coupled with attitude regulation because translational motion is generated by reorienting the thrust vector, while achievable performance is constrained by motor dynamics, thrust saturation, and power limitations [1, 2]. Controller comparisons are therefore a recurring theme in the literature, from early PID/LQ, backstepping, and sliding-mode studies [3, 4, 5] to recent comparisons of linear and nonlinear MPC and differential-flatness-based control [6, 7]. Surveys of multirotor, PID, and MPC control [8, 9, 10] and of agile autonomous flight [11] summarize the broad design space.
The observed outcome of such a comparison, however, depends on more than the feedback law. It is also influenced by (i) the effort devoted to tuning each method, (ii) the availability of future reference information, (iii) whether motor dynamics are represented in the predictor, (iv) the command applied when the optimizer fails or returns an unacceptable solution, and (v) whether each command is available within the sampling period. The last two factors are especially important for optimization-driven controllers, since the system may receive a mix of accepted optimizer results and
Corresponding author: Ngoc-Bich Le (lengocbich@iuh.edu.vn).
fallback actions, and each optimizer call has a non-negligible computation latency [12, 13]. For these reasons, simply reporting an average tracking error can hide these influences.
This paper examines these effects in a controlled simulation study of cascade PID, hover LQR, BL-SMC, and LMPC-F. A preview-enabled LMPC-F and a geometric controller are included in a confirmation study using fresh realizations. All controllers are evaluated on the same nonlinear plant, with a common rotor allocator and a 50 Hz update rate, while retaining their method-specific reference construction, feedforward terms, and inner-loop structure. It addresses three questions:
-
How does a matched candidate-count tuning protocol affect the accuracy ordering, and does the resulting ordering persist on fresh realizations and under larger candidate-count budgets?
-
How do reference preview, motor-state prediction, fallback projection, and tilt-constraint placement individually and jointly affect LMPC-F under smooth and discontinuous references?
-
How sensitive are the closed-loop results to measured command-call delays and missed deadlines?
The main contributions of this work are as follows.
• A paired fixed-versus-tuned evaluation over 50 randomized realizations demonstrates that a matched candidate-count tuning protocol changes the mean-RMSE ordering of the four controllers, and that the accuracy gains are accompanied by controller-dependent changes in actuation smoothness.
• A factorial analysis of LMPC-F design choices shows that reference preview has a stronger effect than predictor choice during a smooth maneuver. For an abrupt step, however, fallback projection helps only in combination with preview, motor prediction, and reduced actuator authority.
• An analysis of LMPC-F applied-input variation shows that most of the large variation occurs within fallback intervals rather than at transitions between QP and fallback operation.
• A confirmation study on 50 fresh realizations extends the evaluation to a geometric controller, preview-enabled MPC, and nested tuning budgets of 12, 24, and 48 candidates. It reproduces the change in the mean-RMSE ordering, shows that the ordering is maintained when the candidate-count budget is quadrupled, and finds that reference preview removes the large variation in the MPC input.
• A replay using recorded command-call timing traces on a desktop computer and a Raspberry Pi 5 demonstrates that numerical acceptance of a control solution does not guarantee its timely delivery to the actuators, and that an iteration cap tied to the deadline removed the resulting failures in the tested nominal timing profiles. These results provide the basis for a reporting checklist in Table 11 for future quadrotor controller comparisons.
All configurations, raw logs, and timing traces are publicly released to support reproducibility (see the Data and code statement). An independent rerun reproduces every non-timing array to within , and the confirmation study reproduces the non-timing metrics of all 96 shared development episodes exactly.
The remainder of the paper is organized as follows. Section 1 reviews related controller benchmarks. Sections 2 and 3 describe the quadrotor model and controller implementations, respectively. Section 4 presents the experimental protocol, and Section 5 reports the results. Section 6 discusses verification, practical implications, and limitations. Finally, Section 7 concludes the paper.
1 Related Work
Table 1: Documented features of related quadrotor benchmark frameworks and of the present study.
| Framework | Plant | Focus | Evaluation design |
|---|---|---|---|
| Martini et al. [20] | Nonlinear quadrotor, motor lag and saturation | Linear and nonlinear controllers | Seven architectures, six missions |
| Safe-Control-Gym [21] | Cart-pole, 1D/2D quadrotor | Constraints, disturbances, safe learning | Reduced-dimensional tasks |
| gym-pybullet-drones [22] | PyBullet multi-rotor | Learning-based, multi-agent control | Gym environments |
| Zhang et al. [23] | RotorPy quadrotor | Adaptive vs. non-adaptive control, stress, delays | Control-library comparison |
| This study | 16-state plant with rotor lag, saturation, gyroscopic coupling | Tuning budget, preview, predictor, fallback, tilt constraints, timing | Paired randomized evaluation, factorial MPC contrasts, measured-delay replay |
1.2 Benchmark Frameworks
Martini et al. [20] evaluated seven controller architectures over six missions on a nonlinear quadrotor model with motor lag and saturation. Safe-Control-Gym [21] provides symbolic dynamics, constraints, and repeatable disturbances for cart-pole and reduced-dimensional quadrotor tasks, and gym-pybullet-drones [22] offers a physics-based multi-agent environment for learning-based control. Zhang et al. [23] introduced a RotorPy-based suite for adaptive control under disturbances, uncertainty, and delayed actuation. Table 1 summarizes their documented features. Because plant models, interfaces, and objectives differ, the numerical results are not directly comparable with those reported here.
1.3 MPC Implementation Issues
Stability and feasibility of constrained MPC are classically analyzed under exact, timely solutions [24, 25]. In practice, real-time MPC relies on fast QP solvers such as OSQP [26], qpOASES [27], or acados [28], with bounded iterations and early termination [13] or reduced-order prediction models [29]. Soft state constraints preserve feasibility, and with an exact penalty the original hard constraint is still satisfied whenever it is feasible [30, 31]; and computation delay degrades closed-loop behavior unless it is explicitly accounted for [12]. How fallback policies, solver acceptance rules, and measured delays jointly shape quadrotor tracking is rarely reported; this study makes these elements explicit and measurable. Related work in machine learning has highlighted the sensitivity of reported results to implementation and evaluation choices [32], while random and stratified sampling provide strong baselines for finite-budget hyperparameter optimization [33, 34]. The present protocol applies related concerns to classical and optimization-based flight-control benchmarking.
2 Quadrotor and Actuator Model
2.1 Frames and Rigid-Body Dynamics
The plant is a “+”-configuration quadrotor with physical coefficients from [35], first-order rotor lag, and finite rotor-speed ceilings (Table 2). The inertial and body frames are and . The inertial position is with pointing upward, the Euler angles are , the body rates are , and the rotor speeds are . The rigid state is
With , , linear drag kg/s, and . The rotation matrix maps vectors from the body frame to the inertial frame. Since the thrust force acts along the positive body -axis, its inertial-frame representation is . The translational and rotational dynamics are therefore written as
where denotes the total thrust magnitude, is the translational drag matrix, represents external force disturbances (no external torque disturbance is applied), , and
The signed rotor-speed combination follows the rotor numbering and spin directions stated in Section 2.2. The gyroscopic term is implemented with this convention in both the nonlinear plant and the verification tests, so its sign should be read together with that rotor convention.
Unless otherwise stated, translational positions and velocities are expressed in the inertial frame, whereas angular velocities and body torques are expressed in the body frame. The Euler angles follow the Z-Y-X sequence of given above. Because this parameterization is singular at , the attitude representation and the operating envelope should be interpreted within the range where it remains valid; the termination guard rad (Section 4.5) keeps all episodes well inside it.
Disturbances are modeled as force profiles rather than calibrated wind fields; equivalently, the wind velocity in the drag term is set to zero. Blade flapping, ground effect, battery-voltage variation, and higher-order aerodynamics are omitted. The gyroscopic term vanishes to first order at balanced hover, so the linear predictors in Section 3 preserve the hover dynamics but neglect gyroscopic coupling away from hover.
2.2 Rotor Convention, Allocation, and Motor Dynamics
Rotors 1–4 are located at , , , ; rotors 1 and 3 spin counter-clockwise and rotors 2 and 4 clockwise, viewed from above. With rotor thrust and generalized input ,
The signs of the roll, pitch, and yaw moments follow the rotor numbering, arm positions, and spin directions specified above. The same allocation matrix is used in the controller-to-rotor mapping, the plant model, the optimizer, and the verification scripts, where it is checked by applying collective thrust and single-axis torque commands to each rotor independently. The common allocator computes from nominal parameters, clips each thrust to , and converts thrusts to speed commands. It does not prioritize thrust over torque under saturation, unlike prioritizing allocation schemes [2]. Three quantities are therefore distinguished. The requested generalized input is mapped to raw rotor thrusts with the nominal allocation matrix; each rotor-thrust command is then clipped independently before conversion to a rotor-speed command, so the allocated generalized input may differ from the requested one when one or more rotors saturate. The applied thrust and torque are determined by the actual rotor states and are not assumed to equal the requested input under saturation. This distinction underlies the applied-input variation metric of Section 4.5. Physical rotor speeds obey
Here, is the motor time constant. The commanded speed is generated by the common allocator, whereas the physical speed evolves according to the motor dynamics and is constrained by the plant's rotor-speed limits. The full plant thus has twelve rigid-body and four rotor states. Parametric uncertainty changes the plant coefficients while the controllers and allocator keep their nominal values. An optional motor-command slew limit is disabled in all primary experiments, and no additional virtual thrust or torque clipping is applied.
Reduced-authority case (RA). To stress actuator authority, the RA case lowers the rotor-speed ceiling of the plant, allocator, and optimizer from 1000 to 650 rad/s. The maximum collective thrust then drops from 2.60 m₀g to 4k₀ω²ₘₐₓ = 5.036 N ≈ 1.097 m₀g; the hover speed ωₕ = √(m₀g/(4k₀)) ≈ 620.6 rad/s is then 95% of the ceiling. RA is therefore a severe stress test rather than a nominal operating condition.
2.3 Simulation Interface
All controllers update at ms (50 Hz), so feedback, optimization, fallback selection, and command-arrival replay share one clock; 5 ms RK4 substeps integrate the plant between updates. Practical flight stacks typically run the attitude or body-rate loop at several hundred hertz and the position loop at a lower rate [2]. The single 50 Hz interface is
Table 2: Physical and numerical parameters. Physical coefficients follow [35]; actuator lag and speed ceiling are assumed.
| Symbol | Value | Unit |
|---|---|---|
| kg | ||
| m | ||
| diag | kg/s | |
| s | ||
| (nominal / RA) | rad/s | |
| Control period | s | |
| RK4 substep | s |

Figure 1: Shared evaluation pipeline. All controllers use the same plant, allocator, motor model, and 50 Hz clock. LMPC-F only. Active only in the timing replay of Section 4.6.
a deliberate choice that gives every method the same timing budget and makes the measured MPC computation times directly comparable with the sampling period. Measurements are ideal and undelayed; only the timing experiment in Section 4.6 introduces command-arrival delays. The hover-model matrices , used below are distinct from the drag matrix . Fig. 1 summarizes the shared pipeline.
3 Controller Implementations
All implementations receive ideal position, velocity, Euler angles, and body rates. They differ not only in feedback law but also in reference construction. PID and BL-SMC use the current position, velocity, and acceleration references, compute the desired attitude through a nonlinear force-to-attitude map, and compensate drag with the measured velocity, . LQR and LMPC-F use small-angle hover references and compensate drag with the reference velocity, . These architectural differences are part of each complete implementation and influence disturbance rejection alongside the feedback law and tuning. For brevity, tables use SMC for BL-SMC and MPC for LMPC-F.
3.1 Cascade PID
With and , the commanded acceleration is
where , , is a filtered velocity error, so no position differentiation is required. The integrator is frozen when amplitude or slew limiting occurred at the previous sample (conditional-integration anti-windup).
Let . At zero yaw, the desired pitch is and the desired roll is , both clipped to rad. The thrust is , and the wrapped attitude error drives
The fixed gain diagonals are , , , , and . Desired angular-rate feedforward is omitted to avoid derivative impulses on steps.
3.2 Hover LQR
At with , the hover model is
with . State blocks have dimension three; input blocks have dimensions one and three. Exact zero-order-hold (ZOH) discretization gives , and the discrete algebraic Riccati solution gives
The fixed weights are and in SI units. With , the reference roll and pitch are and with zero yaw and body rates, the feedforward is , and . This low-order reference is intended for moderate maneuvers. The reported LQR results characterize this fixed-gain controller based on the hover-linearized model and small-angle reference construction; they should not be interpreted as a general performance limit of LQR, particularly for aggressive maneuvers or designs that incorporate trajectory-dependent linearization and angular-rate feedforward.
3.3 Boundary-Layer Sliding-Mode Control
The position sliding variable and commanded acceleration are
where is the componentwise unit saturation that replaces the sign function inside a boundary layer [36]. The same force-to-attitude map as PID is used. The attitude loop uses the local surrogate
which approximates Euler-error rates by body rates and omits desired-rate derivatives; it is therefore not an exact sliding variable on . The fixed parameters are , , , , , and per axis. For an ideal scalar channel with matched disturbance , yields outside the layer; the applied-input variation and motor traces assess the implemented behavior under sampling, coupling, lag, uncertainty, and clipping. The boundary-layer saturation reduces discontinuous switching but does not, by itself, establish stability of the complete sampled-data nonlinear system with actuator saturation, motor lag, and model uncertainty. The performance claims in this study therefore rest on the specified implementation and the reported simulation outcomes, not on a general stability guarantee.
3.4 Linear MPC with Numerical Acceptance
With , LMPC-F optimizes moves (0.5 s):
The rigid predictor uses , , and . The fixed , equal the LQR weights, and ; tuned LQR and MPC weights are selected independently. All variants impose rotor-thrust bounds and increment bounds , (N, N m) per sample, with N nominally and 1.259 N in RA. Here is the previously accepted (or held) generalized request, not the motor-applied input.
The QP is solved by OSQP [26] with absolute and relative tolerances , at most 4000 iterations, adaptive- interval 50, warm starting, and no polishing. A solution is accepted only if OSQP reports solved or solved inaccurate, all horizon values are finite, and the constraint excess is at most N for rotor and collective increments, N m for torque.
increments, and rad for tilt constraints. Otherwise, the fallback is invoked. The increment penalty and bounds govern accepted QP actions only; the raw LQR fallback bypasses them, so the closed-loop LMPC-F signal can exceed the QP increment limits during recovery. All horizons, statuses, and acceptance decisions are logged.
A solver status of solved is thus necessary but not sufficient for command acceptance. A candidate that fails the numerical consistency check, reaches the iteration limit, or is reported as infeasible is rejected, and the designated fallback command is applied; the solver status and the final acceptance decision are logged separately. An accepted MPC solution provides a requested generalized input, which then passes through the common rotor allocator and the actuator model. Solver acceptance therefore does not imply that the request is reproduced exactly by the physical plant: saturation, motor lag, and command-arrival delays may make the applied input differ from the optimizer's request.
3.5 Motor-State Prediction Variant
Let and . Augmenting the hover model with linearized rotor dynamics in the same generalized-request coordinates gives
Exact ZOH yields a 16-state predictor initialized with the measured . Its stage weight extends with four zeros, its own DARE supplies the terminal weight , and the augmented reference is . The motor variant therefore changes three things at once: it adds measured rotor states, a motor-lag prediction model, and a model-derived terminal cost.
3.6 Fallback and Tilt-Constraint Variants
The raw fallback applies the rigid LQR gain computed from the same Q, and bypasses the QP increment and tilt restrictions before the common allocator. The projected fallback instead solves
with , using a separate four-variable OSQP instance with tolerances; if the projection fails, the previous request is held and the event is logged. The projection restricts the input only; no invariant set, control-Lyapunov certificate, or recursive-feasibility argument is attached to it.
Three tilt-constraint placements are compared. Hard-initial imposes rad for ; since is fixed by equality, the QP is infeasible whenever the measured tilt already exceeds the bound. Hard-future imposes the bound for only. Soft-future adds nonnegative slacks, , with a quadratic penalty and no upper slack bound. This penalty is not exact in the sense of [30], so the tilt bound may be violated even when a feasible solution exists [30, 31]. Unless stated otherwise, LMPC-F uses hard-initial tilt constraints and raw fallback. The preview-enabled track (LMPC-F+P) is identical except that the known future reference schedule is supplied over the horizon.
3.7 Geometric Baseline
To include a controller designed on the rotation group, the confirmation study adds a geometric tracking controller in the spirit of [14]. The commanded force defines the desired body axis , whose tilt is limited to 0.55 rad as for PID; with zero desired yaw, with . The thrust is and
The fixed gains equal the PID position and attitude gains, , , , . The desired angular velocity is set to zero and no integral action is used, so the controller differs from PID mainly in its attitude-error definition and its lack of integral action.
Table 3: Matched tuning budget. Each method has 12 candidate settings (two development episodes each) and three validation finalists. IDs are zero-based. Wall time sums concurrent worker time.
| Method | Settings | Dev.+val. | Selected ID | Val. score | Wall min |
|---|---|---|---|---|---|
| PID | 12 | 24 + 3 | 11 | 0.187 | 1.2 |
| LQR | 12 | 24 + 3 | 8 | 0.225 | 1.1 |
| SMC | 12 | 24 + 3 | 10 | 0.119 | 1.2 |
| MPC | 12 | 24 + 3 | 3 | 0.354 | 2.2 |
4 Experimental Design
4.1 Tuning Protocol and Data Separation
The execution protocol was fixed and time-stamped before the reported runs. Each controller receives twelve candidates: its fixed baseline plus eleven Latin-hypercube points [34] in a four-dimensional space of multipliers spanning 0.6–1.8. PID varies the position P, D, and I scales and an attitude-gain scale; LQR varies the position, velocity, and attitude Q scales and the scale; BL-SMC varies the position surface, switching gain, boundary width, and attitude switching gain, with the vertical switching gain spanning an absolute range of 1.5–4.5 m/s , wider than the multiplier range used for the other parameters (a sensitivity check is reported in Section 6.3); MPC varies the position and velocity Q scales, , and S. Tuning MPC weights also changes the associated LQR fallback gain.
Each candidate is scored on two development episodes (a modified figure-eight and a smooth transition, each with one fixed uncertainty and disturbance realization). The three best mean development scores each receive one validation episode, and the lowest validation score selects the setting (ties broken by candidate index). The score is
where indicates termination and is the applied-input variation defined in Section 4.5. Selected settings were hashed before the evaluation runs. The fixed track retains the historical gains and weights listed in Section 3; these were not individually optimized, so the fixed-to-tuned change also reflects the quality of each baseline. Table 3 summarizes the matched budget.
4.2 Evaluation Realizations
Each episode lasts 20 s. Fifty joint realizations randomize the reference and the plant: mass [0.8, 1.25], each inertia axis [0.75, 1.25], and thrust coefficient [0.8, 1.15] relative to nominal. The reference is a phased figure-eight,
with m, rad/s, rad/s, , and analytical derivatives. The disturbance is a force pulse on [5.4, 11.4) s equal to N scaled by a uniform [0.8, 1.2] factor, plus colored noise with standard deviations (0.2, 0.2, 0.1) N and correlation time 0.25 s. Initial position and velocity match the reference, attitude and rates are zero, and the motors start at the nominal hover speed ; on a perturbed plant this acts as an initial thrust imbalance, with initial thrust-to-weight ratios between 0.64 and 1.44 over the sampled mass and thrust-coefficient ranges. Each realization is shared by all four methods and both tracks, giving 400 paired evaluation episodes. Evaluation seeds are disjoint from the development and validation seeds, and the selection procedure never accesses evaluation scores. The evaluation realizations had, however, been inspected during earlier development of the benchmark; Section 6.3 discusses this point. In the main evaluation, both MPC tracks repeat the current reference over the horizon (no preview), matching the information available to the other controllers.
4.3 MPC Mechanism Experiments
Matrix A crosses five binary factors for LMPC-F with fixed weights: preview (current reference repeated vs. known future schedule), predictor (rigid vs. motor), fallback (raw vs. projected), authority (nominal vs. RA), and reference (abrupt vs. smooth), giving 32 cells. The abrupt reference steps from to m at 3 s; it is an intentional stress input, not a feasible planned flight. The smooth reference connects the same endpoints over s as with m, , and , so velocity and acceleration vanish at both ends. Its bounds are , and , placing it between the figure-eight and the step in difficulty. Matrix adds 16 cells that replace hard-initial with hard-future or soft-future tilt constraints for the rigid/raw configuration across both preview settings, authorities, and references; its hard-initial comparator is taken from Matrix A. These 48 cells are deterministic diagnostics, not independent uncertainty trials. In total there are primary episodes; six dedicated timing profiles and six arrival replays are additional.
4.4 Confirmation Study on Fresh Realizations
After the primary study, a confirmation protocol was fixed and hashed before execution. It draws 50 new realizations from the same distribution (new seeds; none was generated or inspected before the analysis reported here) and evaluates six methods: the four primary implementations, LMPC-F+P, and the geometric controller. Each method receives 48 candidates: for the four primary methods, the first twelve are exactly the primary-study candidates, followed by 36 new Latin-hypercube points; LMPC-F+P uses the LMPC-F candidates with preview enabled, and the geometric controller varies the scales of , , , and . Applying the same development/validation rule to the first 12, 24, and 48 candidates yields nested budgets. Re-executing the primary tuning episodes in this protocol reproduced the non-timing metrics (RMSE, V, termination, and development score) of all 96 shared development episodes exactly and selected the same four settings; only the measured timing fields differ. Because the three finalists of the nested budgets overlap, only the distinct finalists are validated (5–7 per method), which gives 36 validation episodes. The study comprises 576 development, 36 validation, and 850 evaluation episodes (fixed settings plus every distinct selected setting per method), i.e., 1462 episodes in addition to the 556 primary episodes.
4.5 Metrics, Termination, and Statistics
Position RMSE is ; step experiments report the post-step window s. Using above, the applied-input variation is in , computed from the motor-applied inputs. is an actuation-smoothness metric, not electrical energy or ideal sliding-mode chattering. Requested, allocated, and applied signals are logged separately.
An episode terminates if the state becomes nonfinite, the position error exceeds 10 m, or or exceeds 1.2 rad. These guards detect divergence and departure from the Euler/hover-model regime; they are not operational safety limits. Completion is reported before accuracy, RMSE rankings use complete episodes only, and partial RMSE of terminated episodes is shown as a diagnostic.
The statistical unit is the joint realization, not a time sample or QP call. Means and paired differences use 10 000 episode-level percentile bootstrap resamples [37], and failure proportions use exact Clopper–Pearson 95% intervals [38]. The reported intervals quantify episode-level uncertainty and are descriptive rather than multiplicity-adjusted inferential guarantees. Comparisons across multiple controllers and experimental contrasts should therefore be interpreted in the context of the stated analysis plan and the number of comparisons performed.
4.6 Measured Timing and Command-Arrival Replay
After all study runs had finished, six mechanism configurations were re-executed sequentially on one Windows desktop with a single numerical thread and default process priority. Each profile includes the first call (no warm-up). The measured command-call time includes reference and diagnostic computations but excludes setup, allocation, plant integration, and logging. State, input, status, and horizon traces were checked against the corresponding study episode.
The same six profiles were then repeated three times on a Raspberry Pi 5 (four Cortex-A76 cores at 2.4 GHz, Raspberry Pi OS based on Debian 13, Linux 6.12, aarch64) with Python 3.13.5 and the same NumPy, SciPy, and OSQP versions. The process was pinned to one core, run at raised priority (nice -10) with the performance frequency governor and one numerical thread; the SoC temperature stayed between 65 and 70 °C and no throttling was reported. On this board we also tested a deadline-aware variant of the four nominal profiles in which the OSQP iteration limit was lowered from 4000 to 400 or 100. A call that stops at the limit fails the acceptance rule and is handled by the LQR fallback like any other rejected solve.
Each measured latency trace is then replayed exogenously. At each sample, a candidate command is computed from the sample-start state. If its measured finish time exceeds 20 ms, it is discarded and the previous request is held; otherwise, the plant integrates under the previous motor command until the measured arrival time and under the new command afterwards (RK4 substeps 5 ms). Late candidates still update the internal controller and solver state, while the MPC
Table 4: Evaluation of complete controller implementations over 20 s (50 paired realizations per method and track). RMSE and use complete episodes. Failure intervals are exact (Clopper–Pearson) 95%; RMSE intervals are episode-bootstrap 95%. Zero observed failures does not imply zero risk.
| Track | Method | Complete | Fail | Failure CI (%) | Mean RMSE [95% CI] (m) | Mean |
|---|---|---|---|---|---|---|
| fixed | PID | 50/50 | 0/50 | [0.0, 7.1] | 0.372 [0.359, 0.387] | 0.140 |
| fixed | LQR | 50/50 | 0/50 | [0.0, 7.1] | 0.300 [0.285, 0.315] | 1.710 |
| fixed | SMC | 50/50 | 0/50 | [0.0, 7.1] | 1.105 [0.795, 1.453] | 0.474 |
| fixed | MPC | 50/50 | 0/50 | [0.0, 7.1] | 0.396 [0.380, 0.413] | 400.873 |
| tuned | PID | 50/50 | 0/50 | [0.0, 7.1] | 0.226 [0.218, 0.235] | 0.335 |
| tuned | LQR | 50/50 | 0/50 | [0.0, 7.1] | 0.238 [0.226, 0.250] | 1.588 |
| tuned | SMC | 50/50 | 0/50 | [0.0, 7.1] | 0.115 [0.107, 0.124] | 1.212 |
| tuned | MPC | 50/50 | 0/50 | [0.0, 7.1] | 0.377 [0.363, 0.391] | 363.405 |
Table 5: Tuned minus fixed paired differences (50 both-complete pairs per method; bootstrap 95% CIs, unadjusted).
| Method | ΔRMSE (m) | 95% CI | ΔV (s ) | 95% CI |
|---|---|---|---|---|
| PID | -0.146 | [-0.152, -0.141] | 0.195 | [0.170, 0.224] |
| LQR | -0.062 | [-0.066, -0.059] | -0.122 | [-0.149, -0.099] |
| SMC | -0.990 | [-1.331, -0.688] | 0.738 | [0.634, 0.856] |
| MPC | -0.019 | [-0.026, -0.011] | -37.468 | [-99.309, 30.538] |
Both-complete paired realizations

Failure counts (exact 95% intervals)
Figure 2: Left: tuned-minus-fixed RMSE differences for each realization (dots), with paired mean and bootstrap 95% interval (black); the symmetric-log axis preserves the SMC tail. Right: failure counts out of 50 for every method and track, with exact 95% binomial intervals.
preceding-input state is reset to the applied or held request. If the original profile terminated early, its duration also limits the replay window (Table 9).
5 Results
5.1 Effect of the Tuning Budget
All eight method–track combinations complete all 50 evaluation realizations (Table 4). With the fixed settings, mean RMSE increases in the order LQR, PID, MPC, SMC; after tuning, the order becomes SMC, PID, LQR, MPC. Every paired difference is negative and every interval excludes zero (Table 5, Fig. 2). The largest reduction, 0.990 m, occurs for BL-SMC, whose fixed baseline has a highly uncertain mean (95% CI [0.795, 1.453] m), reflecting a few large-error episodes; the smallest, 0.019 m, occurs for LMPC-F. Paired contrasts relative to tuned PID support the primary-study ordering: BL-SMC differs by -0.111 m [-0.116, -0.105], LQR by +0.012 m [0.003, 0.020], and LMPC-F by +0.151 m [0.137, 0.165] (paired bootstrap 95% intervals). A matched twelve-candidate budget is thus sufficient to change the mean-RMSE ordering. Most of this change comes from the poor fixed BL-SMC baseline, which moves from last to first; among PID, LQR, and LMPC-F the change is a single adjacent swap of PID and LQR (0.012 m apart after
Table 6: Confirmation study on 50 fresh realizations (Section 4.4). Mean RMSE over complete episodes with bootstrap 95% CI; “Fail” counts terminations out of 50. Budget columns use the setting selected from the first 12, 24, or 48 candidates; identical selections give identical values. V and fallback percentage refer to the 12-candidate selection.
| Method | Fixed: RMSE [CI] (m), Fail | Budget 12 (m) | Budget 24 (m) | Budget 48 (m) | ||
|---|---|---|---|---|---|---|
| PID | 0.385 [0.363, 0.408], 0 | 0.231 [0.219, 0.242] | 0.231 [0.219, 0.242] | 0.223 [0.212, 0.234] | 0.332 | - |
| LQR | 0.295 [0.283, 0.307], 0 | 0.235 [0.225, 0.246] | 0.235 [0.225, 0.246] | 0.235 [0.225, 0.246] | 1.530 | - |
| BL-SMC | 1.096 [0.791, 1.437], 2 | 0.128 [0.113, 0.146] | 0.128 [0.113, 0.146] | 0.128 [0.113, 0.146] | 1.175 | - |
| LMPC-F | 0.385 [0.371, 0.399], 0 | 0.370 [0.356, 0.383] | 0.352 [0.339, 0.364] | 0.351 [0.340, 0.363] | 193.6 | 5.7 |
| LMPC-F+P | 0.301 [0.289, 0.313], 0 | 0.268 [0.257, 0.280] | 0.249 [0.238, 0.259] | 0.249 [0.238, 0.259] | 1.299 | 0.0 |
| Geometric | 0.544 [0.499, 0.593], 0 | 0.341 [0.314, 0.369] | 0.345 [0.317, 0.376] | 0.345 [0.317, 0.376] | 0.171 | - |

Figure 3: Confirmation study on 50 fresh realizations: mean RMSE with bootstrap 95% intervals (left) and mean applied-input variation (right) for fixed settings and for the settings selected with budgets of 12, 24, and 48 candidates. Both axes are logarithmic.
tuning). The change shows that rankings obtained from untuned or unequally tuned baseline settings can be strongly influenced by the tuning protocol and by the quality of the chosen baseline settings.
Accuracy gains do not imply smoother actuation. PID and BL-SMC reduce RMSE while increasing V, LQR reduces both, and the MPC change in V has an interval that includes zero. With zero failures in 50 trials, the exact upper bound on the failure probability is still about 7.1% per group.
Why LMPC-F has large input variation. Tuned LMPC-F has , versus for LQR with which it shares its model and fallback gain. Over the 50 tuned episodes, the fallback is invoked on 4793 of 50 000 calls (9.59%): 3743 primal-infeasibility statuses, 925 iteration-limit statuses, and 125 solved statuses rejected by the acceptance check. Only 111 calls start outside the initial tilt envelope, so the hard-initial tilt constraint alone cannot explain the fallback frequency; the logs suggest that infeasibility arises mainly from the interaction of the increment bounds , the rotor-thrust bounds, and the disturbance. A retrospective decomposition attributes 92.4% of total to increments in which at least one endpoint is a fallback action, but only 12.3% to the 1440 QP/fallback mode transitions (28.8 per episode). Most of the variation therefore arises within fallback intervals, where the LQR gain is applied without increment limits and its output is shaped only by allocator clipping and motor lag, rather than solely at mode switches. Consequently, penalizing and bounding QP increments does not bound the variation of the complete hybrid controller. Because removing the fallback would change the trajectories themselves, this decomposition is descriptive rather than counterfactual.
5.2 Confirmation on Fresh Realizations and Larger Budgets
Reproducibility of the ranking. On the fresh realizations, the tuned errors of the four primary methods are within 0.013 m of their primary-study values (PID 0.231 vs. 0.226, LQR 0.235 vs. 0.238, BL-SMC 0.128 vs. 0.115, LMPC-F 0.370 vs. 0.377 m), and the fixed-to-tuned change in the ordering recurs (Table 6); fixed PID and fixed LMPC-F are nearly tied on the fresh set (0.3847 vs. 0.3852 m). If the BL-SMC vertical switching gain is restricted to the common multiplier range, however, tuned BL-SMC is no longer distinguishable from tuned PID on the fresh set (Section 6.3). The fixed BL-SMC now fails in 2 of 50 episodes (position guard at 12.6 and 14.1 s; exact 95% CI 0.5–13.7%), whereas
Table 7: Abrupt-step factorial (Matrix A, fixed weights, hard-initial tilt). “F t” denotes termination at t s; starred RMSE values are partial post-step diagnostics excluded from ranking. FB: percentage of fallback calls. Pred. error: mean one-step position-prediction error evaluated along each configuration’s own trajectory. Because trajectories and operating states differ across configurations, these values are descriptive and should not be interpreted as a matched-state comparison of predictor accuracy.
| Case | Preview | Predictor | Fallback | Outcome | Post RMSE (m) | FB (%) | Pred. error (m) |
|---|---|---|---|---|---|---|---|
| RA | no | motor | projected | F 3.44 | 2.837* | 11.6 | 0.00005 |
| RA | no | motor | raw | F 4.32 | 2.521* | 29.6 | 0.00062 |
| RA | no | rigid | projected | F 3.46 | 2.830* | 7.5 | 0.00007 |
| RA | no | rigid | raw | F 4.62 | 2.277* | 30.7 | 0.00205 |
| RA | yes | motor | projected | complete | 0.512 | 1.4 | 0.00001 |
| RA | yes | motor | raw | F 4.36 | 2.387* | 34.4 | 0.00059 |
| RA | yes | rigid | projected | F 3.16 | 2.603* | 14.6 | 0.00007 |
| RA | yes | rigid | raw | F 3.36 | 2.787* | 19.6 | 0.00073 |
| nominal | no | motor | projected | F 3.30 | 2.857* | 7.3 | 0.00003 |
| nominal | no | motor | raw | complete | 0.568 | 2.1 | 0.00001 |
| nominal | no | rigid | projected | F 3.34 | 2.849* | 6.0 | 0.00005 |
| nominal | no | rigid | raw | complete | 0.650 | 3.5 | 0.00003 |
| nominal | yes | motor | projected | F 3.58 | 2.641* | 24.6 | 0.00012 |
| nominal | yes | motor | raw | complete | 0.584 | 5.6 | 0.00002 |
| nominal | yes | rigid | projected | F 3.10 | 2.508* | 14.8 | 0.00012 |
| nominal | yes | rigid | raw | complete | 0.574 | 5.4 | 0.00005 |
it completed all 50 primary realizations. This is consistent with the upper bound reported in Table 4 and illustrates why zero observed failures must not be read as zero risk.
Effect of a larger budget. Doubling or quadrupling the budget changed the selected setting for PID (48 only), LMPC-F, LMPC-F+P, and the geometric controller, but the paired changes relative to the 12-candidate selection were small: -0.008 m for PID, -0.018 and -0.019 m for LMPC-F, -0.019 m for LMPC-F+P, and +0.004 m for the geometric controller, whose larger-budget choice won on the single validation episode but generalized slightly worse. The mean-RMSE ordering was identical for budgets of 12, 24, and 48 (Fig. 3). Not every adjacent pair in this ordering is statistically distinguishable on the fresh set: tuned PID and LQR differ by -0.005 m [-0.013, 0.003] at budgets 12 and 24 and by -0.013 m [-0.020, -0.006] at 48, and the geometric controller and LMPC-F overlap at budgets 24 and 48 (paired bootstrap 95% intervals). For the tested task and candidate-generation procedure, the mean-RMSE ordering remained unchanged as the tuning budget increased from 12 to 48 candidates. This supports the robustness of the observed ordering change within the evaluated search range, but it does not establish budget-independent rankings for other tasks or parameterizations.
Preview and the fallback tail. Without preview, LMPC-F invoked its fallback in only 8 (fixed) and 10 (tuned) of the 50 fresh episodes, yet these episodes dominate its input variation: the median is , comparable to LQR, while the five largest episodes account for of the total. With preview enabled, no fallback occurred in any of the 150 LMPC-F+P episodes (fixed setting and both tuned selections), the maximum was , and the paired differences relative to LMPC-F were [-0.111, -0.093] in RMSE and [-326, -76] in . The extreme mean variation of LMPC-F in Table 4 is thus a heavy-tailed effect of a few fallback episodes, and in this task such episodes occurred only when the controller planned toward a stationary (repeated) reference. Even with preview, LMPC-F+P remains less accurate than tuned PID, LQR, and BL-SMC. Since tuned LQR uses the same hover-based reference and reference-velocity drag feedforward, this gap is specific to the MPC formulation; plausible contributors are the increment bounds , which limit how quickly the input can respond to the force pulse, and the horizon cost structure.
Geometric baseline. After tuning, the geometric controller reaches 0.341 m, i.e., 0.110 m [0.091, 0.131] worse than PID, with the lowest input variation of all methods. Since it shares PID's force-to-attitude structure but lacks integral action, the difference is consistent with the uncompensated 6-s force pulse; it should not be interpreted as a limitation of geometric control in general.
5.3 Preview, Motor Prediction, and Fallback Interaction
Smooth maneuver. All sixteen smooth-reference cells complete. Under nominal authority, preview reduces post-maneuver RMSE from 0.16887 to 0.00295 m with the rigid predictor and from 0.17024 to 0.00312 m with the motor predictor. For the tested smooth maneuver, reference preview has a substantially larger effect on tracking error than the

Figure 4: Abrupt step with scheduled preview in the reduced-authority (RA) case. The dashed trace (motor predictor, projected fallback) is the only RA configuration that completes. All variants share the allocator and plant; crosses mark terminations. The input-increment ratio is normalized by the componentwise QP limits ; bottom rows mark fallback calls. Projection restricts the requests but not the nonlinear state evolution.
choice between the two evaluated predictors; without preview, the MPC repeatedly plans to a stationary target and lags the moving one. This result is specific to the tested reference and implementation; the abrupt-step experiments below show that preview interacts with fallback policy and actuator authority in a different way.
Abrupt step. The pattern reverses for the step (Table 7). Raw fallback completes four of eight cells, projected fallback only one. Under nominal authority, every raw-fallback variant completes and every projected variant terminates. Under RA, every raw-fallback variant terminates, and the only completing cell combines motor prediction, preview, and projected fallback (post-step RMSE 0.512 m, 1.4% fallback). Fig. 4 illustrates these trajectories for the RA case with preview. These counts do not indicate a universally superior fallback policy: under nominal authority raw fallback completes all four tested variants, whereas under reduced authority it terminates in all four, and only the preview-enabled motor-predictor configuration with projected fallback completes. The results therefore demonstrate a strong interaction between fallback policy and the remaining design choices.
The logged trajectories suggest the following mechanism, which the present design cannot isolate causally. After a 2.9 m step, the QP is frequently infeasible because the increment bounds prevent the input from changing quickly enough. The raw fallback then supplies large corrective requests that recover the nominal vehicle, but under RA these saturate the rotors and the tilt diverges. The projected fallback limits the requests to the increment bounds; with ample authority this slows recovery until the tilt guard is reached, whereas with reduced authority and accurate motor prediction it avoids saturation-induced divergence. Because projection also alters subsequent states, optimizer acceptance, and allocation,
Table 8: RA abrupt step, rigid predictor, raw fallback (Matrix B). Hard-future omits only the tilt bound; soft-future allows penalized slack. Starred values are partial.
| Preview | Tilt policy | Outcome | Post RMSE | Max slack (rad) |
|---|---|---|---|---|
| no | hard-initial | F 4.62 | 2.277* | 0.00000 |
| no | hard-future | F 4.62 | 2.277* | 0.00000 |
| no | soft-future | F 4.62 | 2.278* | 0.00341 |
| yes | hard-initial | F 3.36 | 2.787* | 0.00000 |
| yes | hard-future | F 3.36 | 2.787* | 0.00000 |
| yes | soft-future | F 6.44 | 2.679* | 0.12700 |
Table 9: Dedicated timing profiles (first call included, no warm-up) and exogenous command-arrival replay on a Windows desktop (Intel Core i5-8400) and a Raspberry Pi 5 (one pinned core, median of three repeats; ranges are shown when repeats differ). Call time includes reference and diagnostic computations and excludes setup, allocation, integration, and logging. “Window” is the profile duration available for replay; a window shorter than 20 s cannot establish completion. Late/used: deadline misses among the replayed calls.
| Case | Prev. | Pred. | Desktop | Raspberry Pi 5 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P99 (ms) | Miss (%) | Window (s) | Replay | Late/used | P99 (ms) | Miss (%) | Window (s) | Replay | Late/used | |||
| nominal | no | rigid | 101.8 | 8.9 | 20.00 | F 3.56 | 13/178 | 121.1 | 9.6 | 20.00 | F 3.58 | 14/179 |
| nominal | yes | rigid | 100.1 | 6.9 | 20.00 | F 2.88 | 8/144 | 39.3 | 2.1 | 20.00 | F 2.88 | 9/144 |
| nominal | no | motor | 32.2 | 1.5 | 20.00 | complete | 15/1000 | 37.4 | 1.6 | 20.00 | F 3.74–3.80 | 16–17/187–190 |
| nominal | yes | motor | 95.1 | 5.9 | 20.00 | F 3.10 | 26/155 | 147.5 | 11.1 | 20.00 | F 3.60–3.80 | 35–41/180–190 |
| RA | yes | rigid | 43.8 | 7.1 | 3.36 | no F in window | 12/168 | 53.6 | 7.1 | 3.36 | F 3.28 | 12/164 |
| RA | yes | motor | 47.0 | 8.3 | 4.36 | F 4.12 | 18/206 | 79.9 | 12.1 | no F in window | 19–20/165 | |
Without delays, this profile terminates at 3.30 s on the Pi and at 4.36 s on the desktop, so the RA rows are not trajectory-matched across machines.
the contrasts identify an interaction rather than a single causal path. The practical message is that the fallback policy is a first-order design choice whose best setting depends on the task and the actuator margin.
5.4 Tilt-Constraint Placement and Relaxation
For the RA step with preview, removing the initial tilt bound leaves the termination time unchanged at 3.36 s, whereas penalized future slack extends the trajectory to 6.44 s before termination (Table 8). An initial state outside a hard tilt envelope makes the QP infeasible, but this is not what limits recovery here: the outcome is governed by actuator authority, and softening the constraint only delays the failure. Soft-constrained solutions satisfy the relaxed rather than the original tilt bound (maximum slack 0.127 rad). The soft-constraint variant permits violations of the original future tilt bound through a penalized slack variable, and a feasible solution of this relaxation does not satisfy the original hard constraint whenever the slack is positive. The longer time to termination therefore indicates delayed failure under the relaxed formulation, not certified satisfaction of the original tilt limit.
5.5 Sensitivity to Measured Command-Call Delays
All four nominal raw-fallback step profiles complete 20 s with instantaneous command application, yet their P99 command-call times of 32.2–101.8 ms exceed the 20 ms period, although median calls are much shorter (Fig. 5). Under measured-trace replay, both rigid-predictor variants and the motor/preview variant terminate, at 3.56, 2.88, and 3.10 s, respectively (Table 9). Only the motor/no-preview variant completes, with post-step RMSE rising from 0.568 to 0.636 m. In the terminating rigid/no-preview replay, 13 of the 178 calls executed before termination miss the deadline (7.3%), so a few percent of held commands during the post-step transient suffice to cause failure. A held request combined with delayed arrivals changes the plant state and therefore the next QP, compounding the effect. Numerical acceptance and timely delivery are therefore distinct properties of the same implementation.
Why the motor predictor is faster in the tail. Without preview, the rigid and motor predictors both have a median of 25 OSQP iterations, but their 99th percentiles are 4000 and 725.5 iterations, with 15 and 3 calls reaching the iteration limit, respectively. The motor variant actually has a slightly higher median command time (2.328 vs. 1.970 ms) but a lower solver-only P99 (28.3 vs. 100.3 ms). The difference thus lies entirely in the convergence tail. ADMM convergence depends on residual behavior, constraint geometry, scaling, and warm starts rather than on state dimension alone [26]. A plausible explanation is that the motor model, with discrete pole , produces plans consistent with
Table 10: Deadline-aware OSQP iteration caps on the Raspberry Pi 5 (nominal step, raw fallback, three repeats each; median values, maximum over repeats for “Max”). Cap hits are calls out of 1000 that used the full iteration allowance; some of them still reached solved or solved inaccurate at the final convergence check and were accepted, so the fallback share can be smaller than the cap-hit share. RMSE is the post-step position RMSE.
| Cap | Prev. | Pred. | P99 (ms) | Max (ms) | Miss (%) | Cap hits | Fallback (%) | No-delay RMSE (m) | Replay (3 runs) | Replay RMSE (m) |
|---|---|---|---|---|---|---|---|---|---|---|
| 4000 | no | rigid | 121.1 | 140.6 | 9.6 | 14 | 3.5 | 0.650 | F 3.58 (3/3) | - |
| 4000 | yes | rigid | 39.3 | 123.9 | 2.1 | 6 | 3.0 | 0.568 | F 2.88 (3/3) | - |
| 4000 | no | motor | 37.4 | 191.6 | 1.6 | 4 | 2.0 | 0.568 | F 3.74-3.80 (3/3) | - |
| 4000 | yes | motor | 147.5 | 221.8 | 11.1 | 9 | 11.5 | 0.606 | F 3.60-3.80 (3/3) | - |
| 400 | no | rigid | 13.3 | 14.0 | 0.0 | 11 | 2.0 | 0.551 | complete (3/3) | 0.555-0.556 |
| 400 | yes | rigid | 13.6 | 14.3 | 0.0 | 34 | 4.0 | 0.537 | complete (3/3) | 0.542-0.550 |
| 400 | no | motor | 20.0 | 67.5 | 1.0 | 14 | 2.3 | 0.551 | complete (3/3) | 0.589-0.605 |
| 400 | yes | motor | 20.5 | 24.5 | 2.3 | 34 | 4.4 | 0.550 | complete 1/3; F 2.96, F 3.34 | 0.579 |
| 100 | no | rigid | 4.5 | 6.1 | 0.0 | 23 | 2.4 | 0.550 | complete (3/3) | 0.552-0.553 |
| 100 | yes | rigid | 4.5 | 4.9 | 0.0 | 51 | 4.8 | 0.550 | complete (3/3) | 0.551 |
| 100 | no | motor | 6.3 | 7.9 | 0.0 | 28 | 2.5 | 0.550 | complete (3/3) | 0.552-0.553 |
| 100 | yes | motor | 6.5 | 7.2 | 0.0 | 60 | 5.5 | 0.550 | complete (3/3) | 0.553 |

Figure 5: Empirical CDF of command-call times on the Windows desktop for the nominal step (1000 sequential calls per predictor/preview variant, raw fallback). The dashed line marks the 20 ms deadline. Calls are correlated; observed maxima are not worst-case execution-time bounds.
the actual rotor response, so warm starts from the shifted previous solution lie closer to the new optimum and fewer constraints change activity between calls. The logged final residuals are consistent with this hypothesis but cannot confirm it; conditioning and dual-oscillation effects remain to be analyzed.
Under RA, the rigid/preview replay shows no termination within its 3.36 s window, which does not establish 20 s completion, and the motor/preview replay terminates at 4.12 s, earlier than the 4.36 s of the original profile. The replay isolates the effect of the measured command-arrival traces under the stated simulation interface. It does not reproduce the scheduling, processor contention, communication, or actuator-interface effects of an embedded flight stack, so the observed failures demonstrate sensitivity to delayed command delivery in these profiles rather than a hardware-independent deadline-failure rate.
Embedded board. Table 9 also lists the Raspberry Pi 5 results. The median call took 2.2–2.9 ms, 1.1–1.2 times the desktop value, and a solve that ran to 4000 iterations took about 119 ms, against 100 ms on the desktop. The board is therefore only slightly slower; what sets P99 is how many calls fall into the iteration tail. Across the three repeats of the uncapped profiles, P99 varied by less than 5% and the replay outcomes were the same apart from small shifts in failure time. On the Pi, all four nominal profiles terminate under replay, including motor/no-preview, which completed on the desktop. Its miss rate is almost the same on both machines (1.6 vs. 1.5%), but on the Pi 16–17 of the first 187–190 calls were late, so the misses fell in the post-step transient. P99 itself moved in both directions (39.3 vs. 100.1 ms for rigid/preview, 147.5 vs. 95.1 ms for motor/preview). Over 1000 calls, P99 is about the tenth-largest call, so it depends on whether a few solves reach the 4000-iteration limit, and those solves are sensitive to floating-point differences between the x86-64 and ARM builds of the same packages. The same sensitivity changes the no-delay RA motor/preview profile, which ends at 3.30 s on the Pi and at 4.36 s on the desktop, and the no-delay nominal preview profiles: post-step RMSE 0.568 vs. 0.574 m (rigid) and 0.606 vs. 0.584 m (motor), with fallback shares of 3.0 vs. 5.4% and 11.5 vs. 5.6% on the Pi and desktop (Tables 7 and 10); the no-preview profiles agree. The two machines also used different measurement protocols (desktop: single run at default priority with Python 3.12.14; Pi: median of three repeats on a pinned core at raised priority with Python 3.13.5), so cross-machine P99 comparisons are indicative.
Deadline-aware iteration caps. Table 10 shows the effect of tying the iteration limit to the deadline. With a cap of 400, P99 falls to 13–21 ms. Both rigid variants then miss no deadline and the motor/no-preview variant completes in all three replays, but the motor/preview variant, whose P99 is just above 20 ms, completes in only one of three. With a cap of 100, P99 is 4.5–6.5 ms, no call exceeds 8 ms, no deadline is missed, and all twelve replays complete with post-step RMSE within 0.003 m of the no-delay run. Between 2.3% and 6.0% of calls use the full iteration allowance; those that end with maximum iterations reached or an infeasibility status are replaced by the fallback, and the total fallback share is 2.4–5.5% of calls, compared with 2.0–11.5% without the cap, and the no-delay post-step RMSE is 0.550 m in all four capped configurations versus 0.568–0.650 m uncapped. Calls of 64–68 ms in two of the cap-400 motor/no-preview repeats, where P99 stays at 20 ms, show that operating-system jitter remains even when the solver work is bounded. On this maneuver, the deadline failures therefore come from the unbounded iteration tail rather than from the processor class, and a cap with a clear margin to the deadline removes them with a slightly lower no-delay post-step RMSE; a plausible reason is an earlier hand-over to the LQR fallback during the post-step transient. This is one abrupt step on one board without a real-time kernel, so it does not show that capping is harmless in general.
6 Discussion
6.1 Verification and Reproducibility
Independently written test scripts check the physical coefficients, rotor mixing, hover equilibrium, gyroscopic coupling, and motor-hover Jacobian. A replay with zero arrival delay reproduces the reference implementation to within . An analytic ZOH audit re-evaluates all 152 116 candidates with successful solver status: 151 815 pass and 301 are rejected, with no disagreement with the online acceptance decisions. The audit uses dynamics and tilt tolerances of per rigid-state block and rad/s per motor state ( N at hover). A rerun of a copied source tree in a fresh offline environment with pinned dependencies reproduces the non-timing arrays of all 556 primary episodes and the six arrival replays within . The confirmation study was executed with the same pinned environment (Python 3.12.14, NumPy 2.5.3, SciPy 1.18.1, OSQP 1.1.3); four primary evaluation episodes (identical RMSE and V) and the non-timing metrics of all 96 shared development episodes were reproduced exactly before the new runs. The released material contains the configurations, horizons, failure records, selection results, statistical summaries, and timing traces of both studies.
6.2 Practical Implications
Table 11 condenses the findings into a reporting checklist. Three implications stand out for practitioners. First, a ranking obtained from untuned or unequally tuned baseline settings can be strongly influenced by both tuning effort and baseline quality; in this study, a matched twelve-candidate search was sufficient to change the mean-RMSE ordering, the change recurred on fresh realizations, and a fourfold larger candidate-count budget did not change the ordering. Second, for MPC-based flight control the fallback policy, solver acceptance rule, and reference information are part of the controller: without preview, a minority of episodes with fallback activity dominated the input variation, whereas with preview no fallback occurred at all on the figure-eight task. Third, a controller that completes a maneuver with instantaneous actuation can fail once measured computation delays are applied; P99 call time and the deadline policy should therefore be reported alongside accuracy, and real-time MPC designs should bound the iteration tail (e.g., by iteration caps tied to the deadline, delay-compensated prediction [12], or embedded solvers [28, 27]). On a Raspberry Pi 5, a 100-iteration cap was enough to remove every deadline miss in the tested nominal step profiles.
6.3 Scope and Limitations
Tuning and data. The tuning results are conditional on a small budget (twelve candidates, two development episodes each, one validation episode per finalist), and the parameter spaces differ in expressiveness across controllers. The confirmation study shows that the mean-RMSE ordering is stable up to 48 candidates, but it does not establish optimal tuning; the single validation episode per finalist also makes selection noisy, as the geometric controller illustrates. The 50 primary evaluation realizations were inspected during earlier benchmark development; the 50 fresh realizations were not, and they reproduce the main conclusions. Neither protocol was externally preregistered. The BL-SMC vertical
Table 11: Reporting checklist for quadrotor controller comparisons derived from this study.
| Report | Evidence in this study |
|---|---|
| Tuning budget, search space, and selection data for every method | Ordering change, reproduced on fresh draws (Tables 4, 6) |
| Reference information (preview, feedforward) per method | Preview: 0.169→0.003 m; no fallback with preview (figure-eight) |
| Completion and failure counts with exact intervals before accuracy | 0/50 primary vs. 2/50 fresh (fixed BL-SMC) |
| Solver acceptance rule and fallback frequency | 9.6% fallback calls; 92.4% of V |
| Applied (not requested) input variation, including its distribution | LMPC-F: median 1.7, mean 194 s |
| Fallback policy and its interaction with authority | Raw 4/8 vs. projected 1/8 (step) |
| Command-time distribution and deadline policy | Replay failures: 3/4 (desktop), 4/4 (Pi 5), 0/4 with a 100-iteration cap |
| Actuator model in plant and predictor | Motor predictor shortens iteration tail |
switching gain was searched over an absolute range of 1.5–4.5 m/s instead of the 0.6–1.8 multiplier used for all other parameters. In a sensitivity check that restricts it to the multiplier range (sampled values 1.12–3.12 m/s ) with the same candidates and selection rule, the same candidate is selected, now with a vertical gain of 2.89 instead of 4.01 m/s . Tuned BL-SMC then reaches 0.125 m on the primary realizations, still -0.101 m [-0.109, -0.089] below tuned PID, but 0.228 m on the fresh realizations, where its paired difference to tuned PID, -0.003 m [-0.100, 0.140], no longer excludes zero. The first place of BL-SMC on the fresh set therefore depends on the wider vertical-gain range, whereas the primary-study result does not.
Architecture. The shared 50 Hz rate, ideal sensing, hover-based prediction, and differences in reference construction and feedforward limit generalization to multi-rate flight stacks and aggressive flight [7, 2]. The primary evaluation uses MPC without preview to match the information available to the other controllers; the confirmation study shows that preview removes the fallback activity and reduces RMSE by 0.10 m, on the figure-eight task, so conclusions about MPC depend strongly on this choice. The tilt limits also differ: PID and the geometric controller clip the desired tilt at 0.55 rad, whereas LMPC-F imposes a 0.45 rad bound inside the QP. The geometric baseline has no integral action and zero desired angular velocity. The motor variant changes state information, prediction model, and terminal cost simultaneously, and the one-step prediction errors are computed along different trajectories, so model fidelity alone is not isolated.
Fallback and constraints. The projected fallback has no nonlinear recovery guarantee, and matched-state experiments would be required to isolate its causal effect. Soft-constraint feasibility does not imply satisfaction of the original tilt bound. The step-response mechanism cells are deterministic single runs.
Timing. Delays were measured on one desktop and one Raspberry Pi 5, both running general-purpose operating systems without real-time scheduling, and were replayed offline. The replay omits CPU queuing, sensor and communication latency, and the overhead of a full flight stack, and the iteration-cap results come from a single abrupt-step maneuver with three repeats. Because a few slow solves set P99 and these depend on platform-specific floating-point behavior, absolute timings do not transfer between machines, and none of the results are worst-case execution-time guarantees.
Future work will include flatness-based baselines with full angular-velocity feedforward [15, 16], multi-episode validation during selection, realistic sensing and wind, deadline-aware MPC evaluated over the full evaluation set and both fallback policies, compiled embedded solvers (e.g., OSQP code generation or acados [28]) on a real-time kernel, and hardware-in-the-loop execution on a flight computer.
7 Conclusion
Under a common nonlinear plant with rotor lag and saturation, tuning, reference information, fallback design, and command timing each materially changed the comparison of six quadrotor controller implementations. A matched twelve-candidate search improved every implementation and changed their mean-RMSE ordering, mainly by moving BL-SMC from last to first; the change recurred on 50 fresh realizations and did not change with a fourfold larger candidate-count budget. Reference preview reduced smooth-maneuver MPC error by more than an order of magnitude, whereas on an abrupt step the projected fallback helped only in combination with preview, motor prediction, and reduced authority. The large input variation of LMPC-F was concentrated within fallback intervals in a minority of episodes and vanished when preview was enabled on the figure-eight task, and replaying measured command delays caused three of four nominal MPC profiles that had completed to terminate (all four on a Raspberry Pi 5), whereas a deadline-aware cap of 100 solver iterations prevented these failures in the tested nominal timing profiles. Controller comparisons should therefore report tracking accuracy together with tuning effort, failure counts, optimizer acceptance and fallback activity, applied-input variation, and command timing, as summarized in Table 11.
Declarations
Data and code: code, configurations, logs, and timing traces are available at https://github.com/Quang61123/quadrotor_benchmark. Generative AI tools were used for English-language editing and for assistance in checking research code for implementation errors. All model outputs, source code, numerical results, analyses, references, and scientific conclusions were independently verified and approved by the authors. The authors take full responsibility for the content of the manuscript. Competing interests: none.
References
[1] R. Mahony, V. Kumar, and P. Corke, “Multirotor aerial vehicles: Modeling, estimation, and control of quadrotor,” IEEE Robotics & Automation Magazine, vol. 19, no. 3, pp. 20–32, 2012, doi: 10.1109/MRA.2012.2206474.
[2] M. Faessler, D. Falanga, and D. Scaramuzza, “Thrust mixing, saturation, and body-rate control for accurate aggressive quadrotor flight,” IEEE Robotics and Automation Letters, vol. 2, no. 2, pp. 476–482, 2017, doi: 10.1109/LRA.2016.2640362.
[3] S. Bouabdallah, A. Noth, and R. Siegwart, “PID vs LQ control techniques applied to an indoor micro quadrotor,” in Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), vol. 3, 2004, pp. 2451–2456, doi: 10.1109/IROS.2004.1389776.
[4] S. Bouabdallah and R. Siegwart, “Backstepping and sliding-mode techniques applied to an indoor micro quadrotor,” in Proceedings of the IEEE International Conference on Robotics and Automation (ICRA), 2005, pp. 2247–2252, doi: 10.1109/ROBOT.2005.1570447.
[5] —, “Full control of a quadrotor,” in Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2007, pp. 153–158, doi: 10.1109/IROS.2007.4399042.
[6] M. Kamel, M. Burri, and R. Siegwart, “Linear vs nonlinear MPC for trajectory tracking applied to rotary wing micro aerial vehicles,” IFAC-PapersOnLine, vol. 50, no. 1, pp. 3463–3469, 2017, doi: 10.1016/j.ifacol.2017.08.849.
[7] S. Sun, A. Romero, P. Foehn, E. Kaufmann, and D. Scaramuzza, “A comparative study of nonlinear MPC and differential-flatness-based control for quadrotor agile flight,” IEEE Transactions on Robotics, vol. 38, no. 6, pp. 3357–3373, 2022, doi: 10.1109/TRO.2022.3177279.
[8] T. P. Nascimento and M. Saska, “Position and attitude control of multi-rotor aerial vehicles: A survey,” Annual Reviews in Control, vol. 48, pp. 129–146, 2019, doi: 10.1016/j.arcontrol.2019.08.004.
[9] I. Lopez-Sanchez and J. Moreno-Valenzuela, “PID control of quadrotor UAVs: A survey,” Annual Reviews in Control, vol. 56, p. 100900, 2023, doi: 10.1016/j.arcontrol.2023.100900.
[10] H. Nguyen, M. Kamel, K. Alexis, and R. Siegwart, “Model predictive control for micro aerial vehicles: A survey,” in Proceedings of the European Control Conference (ECC), 2021, pp. 1556–1563, doi: 10.23919/ECC54610.2021.9654841.
[11] D. Hanover, A. Loquercio, L. Bauersfeld, A. Romero, R. Penicka, Y. Song, G. Cioffi, E. Kaufmann, and D. Scaramuzza, “Autonomous drone racing: A survey,” IEEE Transactions on Robotics, vol. 40, pp. 3044–3067, 2024, doi: 10.1109/TRO.2024.3400838.
[12] R. Findeisen and F. Allgöwer, “Computational delay in nonlinear model predictive control,” in Proceedings of the IFAC International Symposium on Advanced Control of Chemical Processes (ADCHEM), ser. IFAC Proceedings Volumes, vol. 37, no. 1, Hong Kong, 2004, pp. 427–432, doi: 10.1016/S1474-6670(17)38769-4.
[13] Y. Wang and S. Boyd, “Fast model predictive control using online optimization,” IEEE Transactions on Control Systems Technology, vol. 18, no. 2, pp. 267–278, 2010, doi: 10.1109/TCST.2009.2017934.
[14] T. Lee, M. Leok, and N. H. McClamroch, “Geometric tracking control of a quadrotor UAV on SE(3),” in Proceedings of the IEEE Conference on Decision and Control (CDC), 2010, pp. 5420–5425, doi: 10.1109/CDC.2010.5717652.
[15] D. Mellinger and V. Kumar, “Minimum snap trajectory generation and control for quadrotors,” in Proceedings of the IEEE International Conference on Robotics and Automation (ICRA), 2011, pp. 2520–2525, doi: 10.1109/ICRA.2011.5980409.
[16] M. Faessler, A. Franchi, and D. Scaramuzza, “Differential flatness of quadrotor dynamics subject to rotor drag for accurate tracking of high-speed trajectories,” IEEE Robotics and Automation Letters, vol. 3, no. 2, pp. 620–626, 2018, doi: 10.1109/LRA.2017.2776353.
[17] A. Romero, S. Sun, P. Foehn, and D. Scaramuzza, “Model predictive contouring control for time-optimal quadrotor flight,” IEEE Transactions on Robotics, vol. 38, no. 6, pp. 3340–3356, 2022, doi: 10.1109/TRO.2022.3173711.
[18] M. Krinner, A. Romero, L. Bauersfeld, M. Zeilinger, A. Carron, and D. Scaramuzza, “MPCC++: Model predictive contouring control for time-optimal flight with safety constraints,” in Proceedings of Robotics: Science and Systems (RSS), Delft, The Netherlands, 2024, doi: 10.15607/RSS.2024.XX.109.
[19] G. Torrente, E. Kaufmann, P. Föhn, and D. Scaramuzza, “Data-driven MPC for quadrotors,” IEEE Robotics and Automation Letters, vol. 6, no. 2, pp. 3769–3776, 2021, doi: 10.1109/LRA.2021.3061307.
[20] S. Martini, M. Stefanovic, A. Rizzo, M. J. Rutherford, P. Livereri, and K. P. Valavanis, “A benchmark framework for testing, evaluation, and comparison of quadrotor linear and nonlinear controllers,” in Proceedings of the International Conference on Unmanned Aircraft Systems (ICUAS), 2023, pp. 471–478, doi: 10.1109/ICUAS57906.2023.10156106.
[21] Z. Yuan, A. W. Hall, S. Zhou, L. Brunke, M. Greeff, J. Panerati, and A. P. Schoellig, “safe-control-gym: A unified benchmark suite for safe learning-based control and reinforcement learning in robotics,” IEEE Robotics and Automation Letters, vol. 7, no. 4, pp. 11142–11149, 2022, doi: 10.1109/LRA.2022.3196132.
[22] J. Panerati, H. Zheng, S. Zhou, J. Xu, A. Prorok, and A. P. Schoellig, “Learning to fly—a Gym environment with PyBullet physics for reinforcement learning of multi-agent quadcopter control,” in Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2021, pp. 7512–7519, doi: 10.1109/IROS51168.2021.9635857.
[23] D. Zhang, R. Tao, S. Cheng, N. Hovakimyan, and M. W. Mueller, “A simulation evaluation suite for robust adaptive quadcopter control,” in Proceedings of the American Control Conference (ACC), 2026, pp. 4316–4323. [Online]. Available: https://ieeexplore.ieee.org/document/11615767/
[24] D. Q. Mayne, J. B. Rawlings, C. V. Rao, and P. O. M. Scokaert, “Constrained model predictive control: Stability and optimality,” Automatica, vol. 36, no. 6, pp. 789–814, 2000, doi: 10.1016/S0005-1098(99)00214-9.
[25] J. B. Rawlings, D. Q. Mayne, and M. M. Diehl, Model Predictive Control: Theory, Computation, and Design, 2nd ed. Madison, WI, USA: Nob Hill, 2017.
[26] B. Stellato, G. Banjac, P. Goulart, A. Bemporad, and S. Boyd, “OSQP: An operator splitting solver for quadratic programs,” Mathematical Programming Computation, vol. 12, no. 4, pp. 637–672, 2020, doi: 10.1007/s12532-020-00179-2.
[27] H. J. Ferreau, C. Kirches, A. Potschka, H. G. Bock, and M. Diehl, “qpOASES: A parametric active-set algorithm for quadratic programming,” Mathematical Programming Computation, vol. 6, no. 4, pp. 327–363, 2014, doi: 10.1007/s12532-014-0071-1.
[28] R. Verschueren, G. Frison, D. Kouzoupis, J. Frey, N. van Duijkeren, A. Zanelli, B. Novoselnik, T. Albin, R. Quirynen, and M. Diehl, “acados—a modular open-source framework for fast embedded optimal control,” Mathematical Programming Computation, vol. 14, no. 1, pp. 147–183, 2022, doi: 10.1007/s12532-021-00208-8.
[29] M. Bangura and R. Mahony, “Real-time model predictive control for quadrotors,” IFAC Proceedings Volumes, vol. 47, no. 3, pp. 11773–11780, 2014, doi: 10.3182/20140824-6-ZA-1003.00203.
[30] E. C. Kerrigan and J. M. Maciejowski, “Soft constraints and exact penalty functions in model predictive control,” in Proceedings of the UKACC International Conference on Control, Cambridge, U.K., 2000. [Online]. Available: http://hdl.handle.net/10044/1/10241
[31] M. N. Zeilinger, M. Morari, and C. N. Jones, “Soft constrained model predictive control with robust stability guarantees,” IEEE Transactions on Automatic Control, vol. 59, no. 5, pp. 1190–1202, 2014, doi: 10.1109/TAC.2014.2304371.
[32] P. Henderson, R. Islam, P. Bachman, J. Pineau, D. Precup, and D. Meger, “Deep reinforcement learning that matters,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 32, no. 1, 2018, pp. 3207–3214, doi: 10.1609/aaai.v32i1.11694.
[33] J. Bergstra and Y. Bengio, “Random search for hyper-parameter optimization,” Journal of Machine Learning Research, vol. 13, no. 10, pp. 281–305, 2012. [Online]. Available: https://jmlr.org/papers/v13/bergstra12a.html
[34] M. D. McKay, R. J. Beckman, and W. J. Conover, “A comparison of three methods for selecting values of input variables in the analysis of output from a computer code,” Technometrics, vol. 21, no. 2, pp. 239–245, 1979, doi: 10.1080/00401706.1979.10489755.
[35] T. Luukkonen, “Modelling and control of quadcopter,” Independent research project, School of Science, Aalto University, Espoo, Finland, 2011. [Online]. Available: https://sal.aalto.fi/publications/pdf-files/eluu11_public.pdf
[36] J.-J. E. Slotine and W. Li, Applied Nonlinear Control. Englewood Cliffs, NJ, USA: Prentice Hall, 1991.
[37] B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York, NY, USA: Chapman & Hall, 1993.
[38] C. J. Clopper and E. S. Pearson, “The use of confidence or fiducial limits illustrated in the case of the binomial,” Biometrika, vol. 26, no. 4, pp. 404–413, 1934, doi: 10.1093/biomet/26.4.404.