Previous Article in Journal
Multi-Physics Digital Twin Models for Predicting Thermal Runaway and Safety Failures in EV Batteries
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Flight-Path Tracking Control Design for Quadrotor UAVs: A Precision-Guided Approach

1
College of Engineering, United Arab Emirates University (UAEU), Al Ain P.O. Box 15551, United Arab Emirates
2
Hangzhou International Innovation Institute, Beihang University, Shuanghongqiao Street 166, Pingyao Town, Yuhang District, Hangzhou 311115, China
*
Author to whom correspondence should be addressed.
Automation 2025, 6(4), 93; https://doi.org/10.3390/automation6040093
Submission received: 25 October 2025 / Revised: 7 December 2025 / Accepted: 9 December 2025 / Published: 12 December 2025

Abstract

This study presents the design and implementation of a real-time flight-path tracking control system for a quadrotor unmanned aerial vehicle (UAV) capable of accurately following a mobile ground target under dynamic and uncertain environmental conditions. The proposed framework integrates classical fixed-gain PID regulation executed on Pixhawk with its built-in adaptive mechanisms, namely autotuning, hover-throttle learning, and dynamic harmonic notch filtering, to enhance robustness under communication latency and disturbances. No machine learning PID tuning is used on Pixhawk; adaptive features are estimator based rather than ML based. The proposed system addresses critical challenges in trajectory tracking, including real-time delay compensation between the UAV and rover, external perturbations, and the requirement to maintain stable six-degree-of-freedom (DOF) control of altitude, yaw, pitch, and roll. A dynamic mathematical model, formulated using ordinary differential equations with embedded delay elements, is developed to emulate real-world flight behavior and validate control performance. Experimental evaluation demonstrates robust path-tracking accuracy, attitude stability, and responsiveness across diverse terrains and weather conditions, achieving a mean positional error below one meter and effective resilience against an 8.2 ms communication delay. Overall, this work establishes a scalable, computationally efficient, and high-precision control framework for UAV guidance and cooperative ground-target tracking, with potential applications in autonomous navigation, search-and-rescue operations, infrastructure inspection, and intelligent surveillance. The term “delay-aware” in this work refers to the explicit modeling of the measured 8.2 ms end-to-end delay and the use of Pixhawk’s estimator-based adaptive mechanisms, without any machine learning-based PID tuning.

1. Introduction

In recent years, quadrotor unmanned aerial vehicles (UAVs) have emerged as a pivotal platform for autonomous operations due to their structural simplicity, vertical take-off and landing (VTOL) capability, and versatility in constrained environments [1,2]. Their ability to hover, maneuver precisely, and operate both indoors and outdoors has made them indispensable across diverse domains, including environmental monitoring, surveillance, search and rescue, and infrastructure inspection [3,4].
Despite these advantages, achieving real-time flight path tracking of dynamic targets such as mobile ground vehicles or rovers remains technically challenging. This complexity arises primarily from the underactuated and nonlinear dynamics of quadrotors, coupled with the unpredictable nature of real-world environments [5,6]. Effective tracking demands not only rapid response to abrupt target maneuvers but also robust adaptation to external disturbances such as wind gusts, terrain variability, and communication noise [7].
Traditional control techniques, such as the Proportional–Integral–Derivative (PID) controller, have been extensively employed for UAV stabilization owing to their simplicity and ease of implementation [8,9]. However, in highly dynamic or uncertain environments, classical PID controllers often fall short due to their fixed gains and limited predictive capability [10]. Recent research has therefore focused on augmenting conventional controllers with nonlinear model predictive control (NMPC) and machine learning (ML) approaches to enable real-time adaptive behavior and enhanced robustness [11,12].
Trajectory generation represents another crucial aspect of flight path tracking. The minimum snap trajectory approach proposed by Mellinger and Kumar [13] minimizes the fourth derivative of position (snap) to ensure smooth motion, particularly during aggressive maneuvers or high-speed tracking. The quadrotor platform considered in this work is illustrated in Figure 1. For completeness, Figure 1 provides a structural view of a typical quadrotor platform used in related experiments. When integrated with vision-based localization [14] and reinforcement learning techniques [15], UAVs gain the ability to perceive and adapt to their surroundings, enabling autonomous operation in complex and dynamic environments. Furthermore, advancements in vision-based human tracking for mobile-robot following have been demonstrated through the improved stereo-vision method presented in [16].
As shown in Figure 2, the sensing configuration used in prior experimental work provides context for our tracking formulation.
Numerous experimental studies have validated these control strategies. For instance, motion-capture-based tracking systems, such as the VICON-based framework presented in [17], have demonstrated precise three-dimensional tracking using external sensors. The referenced study developed an autonomous mobile object tracking system utilizing a UAV integrated with a motion-sensing platform as shown in Figure 2. This work significantly advances UAV-based object tracking capabilities, particularly in real-time applications, and holds broad potential for diverse domains such as target tracking, environmental monitoring, and surveillance in dynamic environments.
Similarly, Greatwood et al. [18] incorporated a neuromorphic vision sensor to achieve the low-latency and energy-efficient visual tracking of ground vehicles as illustrated in Figure 3, which is adapted from their work. Furthermore, UAV-UGV coordination systems, such as the takeoff-and-landing-on-mobile-robot framework proposed by Zou and Dai [19], have demonstrated how real-time computer vision and wireless communication can effectively enable cooperative aerial–ground robotic operations.
The rapid advancement of machine learning (ML) techniques has further expanded the capabilities of UAV control systems. Methods such as Deep Reinforcement Learning (DRL) enable quadrotors to acquire agile behaviors, such as flips and obstacle avoidance, in simulated environments before being transferred to real-world applications [20]. Neural Networks (NNs) have also demonstrated considerable potential in modeling aerodynamic disturbances and wind effects, thereby improving quadrotor flight stability [21]. Furthermore, imitation learning, as explored in [21], offers a data-efficient alternative by allowing UAVs to replicate expert demonstrations with limited training data. It is important to note that, unlike the ML-based control strategies discussed in the prior literature, our implementation does not use any machine learning component in the flight control loop. Pixhawk executes classical cascaded PID control with fixed gains, while its adaptive elements (autotune, hover-throttle learning, and dynamic notch filtering) are estimator based rather than ML based.
A broad range of studies on UAV tracking systems have significantly contributed to understanding the challenges and potential solutions for enhancing object-tracking accuracy in demanding operational environments. For example, the research presented in [22] applied a leader–follower paradigm using GPS and Arduino microcontrollers for outdoor UAV coordination. The study also introduced an algorithm for an indoor micro-quadrotor that employs a vision-based approach to track lines. This technology uses an integrated vision camera to detect line information, which is then transmitted to a ground control station (GCS) for real-time image processing.
Additionally, the work by Sharma and Singh [23] investigated the coordination between a UAV and a small mobile vehicle. Their study proposed a vision-based control strategy for ground-target following, utilizing an advanced vision sensor architecture equipped with an independent processing unit for each pixel, thereby enabling high-speed visual computation and enhanced target-tracking performance.
Correspondingly, it has been demonstrated that employing multiple quadrotors, rather than a single unit, offers several advantages. Multi-quadrotor systems can carry additional sensors and payloads, enhance cargo and surveillance capabilities, and accomplish complex or time-intensive missions with greater efficiency. Quadrotor formation control typically employs one of several coordination strategies, including the following:
  • Leader–Follower;
  • Virtual Structure;
  • Behavior-based approaches.
Among these, the Leader–Follower configuration is the most straightforward, wherein one quadrotor assumes the role of leader while the others act as followers. Each follower quadrotor maintains a predefined relative position and adjusts its motion according to the leader’s trajectory [23].
Despite these advancements, significant challenges persist. Many existing systems still lack real-time responsiveness, struggle in GPS-denied environments, or depend on computationally intensive algorithms unsuitable for onboard processors. Furthermore, communication delays, control-loop latency, and environmental uncertainties continue to hinder consistent and reliable tracking performance [24,25,26].
This research aims to address these limitations by developing a hybrid UAV control architecture that integrates an adaptive-tuning framework that relies on Pixhawk’s estimator-based mechanisms (autotune, hover-throttle learning, and dynamic notch filtering) to maintain robustness under delay and disturbances, without any machine learning PID tuning. The proposed system is designed to perform the following:
  • Ensure real-time communication with minimal latency;
  • Accurately follow a moving rover across variable terrains;
  • Maintain stability across altitude, pitch, yaw, and roll axes;
  • Adapt to obstacles, wind disturbances, and directional variations in the target’s trajectory.
Novelty and Contributions: The study develops a delay-aware hybrid PID control framework that integrates classical feedback regulation with Pixhawk’s estimator-based adaptive mechanisms (autotune, hover-throttle learning, and dynamic notch filtering) to mitigate communication latency between a UAV and a ground rover. The approach is analytically verified through Padé-modeled delay analysis and Routh–Hurwitz stability criteria, and experimentally validated under a measured delay of 8.2 ms. Field trials confirm sub-meter trajectory accuracy (mean = 0.82 m) and robust attitude stabilization (yaw error ≤ 1.3°) across dynamic outdoor conditions. Compared with nonlinear MPC and 2-DOF PID controllers, the framework achieves comparable tracking precision with substantially lower computational overhead, thereby establishing a computationally efficient and field-validated framework for real-time UAV-UGV cooperative tracking missions.
Building on this foundation, the control strategy combines the predictability of classical PID regulation with the adaptability of Pixhawk’s estimator-based autotuning mechanism to enable reliable real-time UAV-UGV coordination. The proposed framework’s effectiveness is validated through both simulation and real-flight experiments, demonstrating strong potential for applications in autonomous navigation, disaster response, smart agriculture, and security surveillance.

2. Mathematical Framework and Control System

This section presents a detailed account of the system’s design, encompassing mathematical modeling, control theory, and algorithmic integration.

2.1. Quadrotor Dynamics Modeling

Developing a comprehensive and accurate mathematical model of a quadrotor is essential for designing robust control systems, particularly when operating in dynamic environments that demand precise maneuverability and stabilization. This subsection introduces the six-degree-of-freedom (6-DOF) dynamic model of the quadrotor, formulated using the Newton–Euler formalism and Euler angle transformations to represent both translational and rotational motion. The model is established under standard assumptions, including a flat Earth approximation, constant gravitational acceleration, coincident centers of mass and gravity, and a perfectly rigid body structure.

2.1.1. Coordinate Frames and Transformations

The quadrotor’s motion is described with respect to two primary reference frames: the inertial (world) frame and the body-fixed frame. The inertial frame is a stationary, Earth-centered reference used to measure position and velocity, whereas the body-fixed frame is attached to the quadrotor’s center of mass and rotates along with it as illustrated in Figure 4.
The quadrotor’s pose is defined by its position vector ξ = [ x , y , z ] T in the inertial frame and its orientation vector η = [ ϕ , θ , ψ ] T , representing roll ( ϕ ), pitch ( θ ), and yaw ( ψ ), respectively. The corresponding inertial–frame velocity is ξ ˙ = [ x ˙ , y ˙ , z ˙ ] T , and the body–frame angular–velocity vector is ω = [ p , q , r ] T , where p, q, and r denote the roll, pitch, and yaw rates, respectively.
The rotation matrix that transforms coordinates from the body frame to the inertial frame is expressed as
R = c ψ c θ c ψ s θ s ϕ s ψ c ϕ c ψ s θ c ϕ + s ψ s ϕ s ψ c θ s ψ s θ s ϕ + c ψ c ϕ s ψ s θ c ϕ c ψ s ϕ s θ c θ s ϕ c θ c ϕ
where c ( · ) cos ( · ) and s ( · ) sin ( · ) .

2.1.2. Translational Dynamics

The translational motion of the quadrotor along the x, y, and z axes is governed by Newton’s second law:
m r ¨ = R F B + F e x t
Here, F B denotes the total thrust vector expressed in the body frame, and F e x t represents external forces acting on the quadrotor (e.g., aerodynamic drag and wind disturbances).
The total thrust generated by the four rotors is given by
T = k ω 1 2 + ω 2 2 + ω 3 2 + ω 4 2
where k denotes the thrust coefficient, and ω i represents the angular velocity of the ith rotor (rad/s).

2.1.3. Rotational Dynamics

In the rotational dynamics, the inertia tensor is modeled as I = diag ( I x x , I y y , I z z ) in the body frame, and the control torque vector is τ = [ τ x , τ y , τ z ] T . The rotational dynamics of the quadrotor are governed by Euler’s equations of motion expressed as
I ω + ω × ( I ω ) = τ
The control torques generated about the roll ( ϕ ), pitch ( θ ), and yaw ( ψ ) axes are given by
τ x = l k ω 4 2 ω 2 2 ( Roll )
τ y = l k ω 1 2 ω 3 2 ( Pitch )
τ z = b ω 1 2 ω 2 2 + ω 3 2 ω 4 2 ( Yaw )
where l denotes the arm length (m), and b represents the drag coefficient.

2.1.4. External Forces and Moments

To compute the translational equations of motion, it is essential to evaluate the external forces and moments acting on the vehicle’s body. These quantities play a critical role in accurately characterizing the vehicle’s dynamic behavior. The quadrotor’s propellers generate thrust forces that act perpendicular to the vehicle’s body frame, while the resulting moments are applied about the vehicle’s center of gravity (CG). The distances between the CG and each propeller are shown in Figure 5, which illustrates the symmetric X-configuration used in our model, where each rotor is located at an equal arm length l from the CG. These geometric relationships are used to determine the corresponding moments about the center of gravity.
The vehicle’s thrust equation is shown in the equation below:
F x F y F z = 0 0 ( F 1 + F 2 + F 3 + F 4 )
In Equation (8), F x , F y , and F z denote the resultant force components acting on the vehicle in the body frame, while F i = k ω i 2 is the thrust produced by the i-th rotor.

2.1.5. Simplified Nonlinear State–Space Model

The complete 12-state model is defined as follows.
State vector:
X = [ x , y , z , x ˙ , y ˙ , z ˙ , ϕ , θ , ψ , p , q , r ] T
Input vector:
U = [ ω 1 2 , ω 2 2 , ω 3 2 , ω 4 2 ] T
Each ω i is the angular speed of rotor i, and the squared terms appear because the generated thrust is proportional to ω i 2 .
All mass and inertia values correspond to the same quadrotor platform used in our earlier work [27] and were adopted directly for consistency.
The nonlinear state equations are
x ˙ = v x
y ˙ = v y
z ˙ = v z
v ˙ x = T m sin ϕ sin ψ + cos ϕ cos ψ sin θ
v ˙ y = T m cos ϕ sin θ sin ψ sin ϕ cos ψ
v ˙ z = g T m cos θ cos ϕ
Here, g denotes the gravitational acceleration:
ϕ ˙ = p + q sin ϕ tan θ + r cos ϕ tan θ
θ ˙ = q cos ϕ r sin ϕ
ψ ˙ = q sin ϕ sec θ + r cos ϕ sec θ
p ˙ = I y y I z z I x x q r + τ x I x x
q ˙ = I z z I x x I y y p r + τ y I y y
r ˙ = I x x I y y I z z p q + τ z I z z
Equations (20)–(22) follow the classical rigid-body Euler rotational dynamics as adopted in [28]. The complete list of numerical parameter values for the above-mentioned model is provided in Table 1.
The physical parameters listed in Table 1 (mass, arm length, and inertia components) were adopted from our previously validated quadrotor model reported in [27], where the same platform was used for trajectory-tracking experiments. Aerodynamic drag terms were not included, following the assumptions in [27], since the vehicle operates at low-to-moderate velocities under which drag forces have negligible influence on the closed-loop dynamics.
This complete nonlinear model serves as the foundation for developing the control system architecture presented in the subsequent sections. The model effectively captures all essential dynamic characteristics while remaining sufficiently tractable for control design and simulation purposes. The parameters listed in Table 1 correspond to typical values for a medium-sized quadrotor platform.

2.2. Control System Design

The control architecture implemented in this work follows the standard cascaded multirotor control structure used in the PX4 flight stack, consisting of outer-loop position and velocity regulation and inner-loop attitude and angular-rate control [29]. Figure 6 provides an overview of the control organization adopted in this study.
Building upon this hierarchical structure, the subsequent subsections detail the PID-based position, altitude, and attitude controllers used in our system, including their formulation, tuning, and integration within the cascaded architecture.

2.2.1. PID-Based Path-Tracking Controller

The quadrotor follows the cascaded multiloop control architecture of the PX4 flight stack, in which position, velocity, attitude, and angular-rate loops operate hierarchically (Figure 6). To clarify the internal signal flow within each loop, the corresponding Controller–Plant–Feedback structure is shown in Figure 7.
Each regulation loop employs a PID controller that computes a corrective action based on the tracking error between the desired and measured states. The internal PID structure used across all axes is shown in Figure 8, illustrating the proportional, integral, and derivative contributions.
The controller is implemented in Simulink using gain-based blocks. Its Laplace-domain representation is given by
G c ( s ) = K d s 2 + K p s + K i s .
Initial gain estimates were obtained using classical tuning approaches: Ziegler–Nichols [30], Cohen–Coon [31], and Tyreus–Luyben [32]. These gains were refined using the MATLAB/Simulink (R2023b) PID Tuner and validated experimentally through hover tests to ensure stable transient and steady-state performance.
The four PID outputs ( u ϕ , u θ , u ψ , u z ) are passed to the PX4 rate controller and motor mixer, producing the rotor commands Ω 1 Ω 4 . The actual Simulink implementation used in this work is shown in Figure 9.
For controller synthesis, the nonlinear dynamics of Section 2 were linearized around the equilibrium hover condition using MATLAB’s linmod function. The resulting state–space model was then used to configure and tune the PID controllers.

2.2.2. Advanced Control Structures (Contextual Overview)

Although this work focuses on PID-based regulation, several advanced control architectures are widely used in UAV research. These methods are summarized here for context only and are not implemented in this study:
  • 2-DOF PID Controllers: Provide independent tuning for tracking and disturbance rejection [33].
  • Fuzzy PID Controllers: Adjust gains via fuzzy-logic inference to improve robustness under parameter variations [34].
  • Optimal Controllers (LQRs): Compute optimal state-feedback gains based on a quadratic cost function [35,36].
  • Model Predictive Controllers (MPCs): Generate optimal control commands by solving a constrained optimization problem at each sampling instant [37].

2.3. PX4 EKF2 State Estimation and Delay-Aware Compensation

Reliable feedback for the cascaded controller requires accurate and time-aligned state estimation. In this work, state estimation is performed using the EKF2 module from the PX4 flight stack, which fuses high-rate IMU data with lower-rate GNSS (GPS), magnetometer, and barometer measurements to provide attitude, velocity, and position estimates for the vehicle [38]. Figure 10 shows the state-estimation pipeline used in this work.
EKF2 runs on a delayed “fusion time horizon” to accommodate different measurement delays across sensors. Incoming measurements are FIFO buffered, and for each sensor the effective delay is configured through the EKF2__DELAY parameters. At the fusion time horizon, the EKF updates the state using the appropriately delayed measurements, and a complementary filter then propagates the state estimate forward to the current time using buffered IMU data [38]. This mechanism provides built-in delay compensation and time alignment of all sensor data before it is used by the controller.
The delay-compensated position, velocity, and attitude estimates produced by EKF2 are supplied to the cascaded control architecture in Figure 6. Consequently, the “delay-aware” behavior of the overall system arises from the EKF2 internal time-alignment and delay-handling logic, rather than from any external machine learning or custom predictive correction block.

3. Design and Integration

Quadrotors are a class of multirotor helicopters, commonly referred to as unmanned aerial vehicles (UAVs) or drones. These aerial vehicles possess six degrees of freedom translation along the X, Y, and Z axes, and rotation about the roll, pitch, and yaw axes achieved by generating thrust through each of their four rotors. The control mechanism of a quadrotor fundamentally distinguishes it from that of a conventional helicopter. While helicopters rely on complex variable-pitch blades and rotor-axis forces, quadrotors achieve maneuverability by modulating the thrust generated by individual motors.

3.1. System Components

The quadrotor system consists of several essential components, summarized in Table 2.

3.2. Air Frame

Quadrotor airframes are typically configured in either the “X” or “+” layout, with each arm supporting a single motor, and the central structure accommodating the flight controller, receiver, and batteries. Carbon fiber is a preferred material owing to its lightweight and high-strength characteristics, although it can sometimes interfere with radio-frequency signals as illustrated in Figure 11. The airframe plays a crucial role in determining the vehicle’s overall dynamics, as the physical configuration of the structure directly influences the parameters of the plant model used in control system design.

3.3. Propellers/Rotors

Propellers are critical aerodynamic components that directly influence the quadrotor’s overall performance and dynamic behavior. They generate the downward thrust required to counteract gravity and sustain controlled flight. The primary parameters defining propeller performance include the following:
  • Pitch: Determines the propeller’s angle of attack and influences the thrust-to-torque ratio.
  • Diameter: Affects the thrust generation area and overall lift capability.
  • Chord: Governs aerodynamic efficiency and power consumption.
  • Material: Impacts structural durability, weight, and vibration characteristics.

3.4. Motors

Quadrotors typically employ either brushed or brushless DC (BLDC) motors as illustrated in Figure 12. Although both operate based on the same electromagnetic principles, they differ in construction, efficiency, and maintenance requirements.
  • Brushed Motors: Feature a simple design and lower cost but are limited by mechanical wear, resulting in a shorter operational lifespan.
  • Brushless Motors: Require Electronic Speed Controllers (ESCs) for commutation yet offer higher efficiency, reduced maintenance, and extended lifespan.

3.5. Electronic Speed Controller (ESC)

The Electronic Speed Controller (ESC), illustrated in Figure 13, is a critical component in brushless motor operation. It performs three primary functions:
  • Three-phase AC power generation: Supplies the brushless motors with appropriately sequenced electrical signals.
  • Speed control: Achieved through pulse-width modulation (PWM) signal conversion, enabling the precise adjustment of motor rotational speed.
  • Back-EMF detection: Utilized for rotor position estimation and commutation timing.
The governing equation for ESC operation is expressed as
V o u t = f P W M i n , θ r o t o r
where V o u t denotes the output voltage, P W M i n represents the input PWM control signal, and θ r o t o r corresponds to the rotor’s angular position.

3.6. Power, Communication, and Control Modules

The quadrotor’s functional subsystems comprise the power supply, wireless communication link, and central flight controller. A lightweight lithium-polymer (LiPo) battery provides high energy density and stable discharge characteristics, ensuring sustained operation under varying load conditions. A 2.4 GHz transmitter–receiver interface supports four-axis command transmission with signal modulation to improve interference resilience. At the core, a Pixhawk-based flight controller integrates the inertial measurement unit (IMU), control algorithms, and motor-mixing logic. These modules operate cohesively to generate the control outputs defined by the Proportional–Integral–Derivative (PID) law in (25), which governs the altitude (z), roll ( ϕ ), pitch ( θ ), and yaw ( ψ ) dynamics. The resulting control signals are mapped to the individual rotor speeds through the allocation matrix in (26), ensuring stable thrust distribution and attitude regulation.
The control law is based on a Proportional–Integral–Derivative (PID) structure, discussed in detail in Section 2. Four decoupled PID controllers govern the quadrotor’s principal degrees of freedom altitude (z), roll ( ϕ ), pitch ( θ ), and yaw ( ψ ) and are defined as
u i ( t ) = K p , i e i ( t ) + K i , i 0 t e i ( τ ) d τ + K d , i d e i ( t ) d t , i { z , ϕ , θ , ψ }
where e z = z des z , e ϕ = ϕ des ϕ , and similarly for pitch and yaw.
The control outputs are subsequently mapped to the individual rotor speeds using the following allocation matrix:
ω 1 2 ω 2 2 ω 3 2 ω 4 2 = 1 0 1 1 1 1 0 1 1 0 1 1 1 1 0 1 u z u ϕ u θ u ψ

3.7. Pixhawk Setup

3.7.1. Modules for Pixhawk

The Pixhawk-based flight control system integrates multiple hardware modules as illustrated in Figure 14. External devices used solely for data logging, such as the Jetson Nano, are not included in the wiring diagram because they do not participate in the flight-control signal path.
  • Computational Core:
    • Pixhawk 4 (STM32F765, 216 MHz)
    • Companion computer (Jetson Nano for sensor logging, delay measurement, and communication handling; no ML used in control loop)
  • Sensing Suite:
    • Here3 RTK GPS (2 cm accuracy)
    • BMI088 IMU (200 Hz update rate)
    • Lidar-Lite v3 sensor for altitude measurement
  • Actuation System:
    • T-Motor F40 Pro II brushless motors
    • BLHeli 32 ESCs (128 kHz PWM)
The Pixhawk setup includes the real-time calibration of all onboard sensors, including the accelerometer, compass, radio, and ESCs. Various flight modes can be configured through the mission planner interface as shown in Figure 15. Common flight modes include “Stabilize, Altitude Hold, Loiter, and Auto” modes. These flight-mode settings are not merely configuration options; they determine which control loops of the Pixhawk autopilot are active during the experiments. For example, “Stabilize” engages the inner attitude and rate controllers only, “Altitude Hold” additionally activates the vertical position controller using the barometer and lidar, while “Loiter” further incorporates GPS-based horizontal position control. Because each mode enables a different combination of control loops, the selected modes directly influence the real-time execution rates shown in Table 3. Presenting the mode configuration (Figure 15) clarifies which PX4 control modules were active during flight, ensuring transparency and reproducibility.
The Pixhawk executes its control tasks under a real-time scheduling framework in which each loop runs at a fixed frequency and must meet its corresponding deadline. The primary execution rates used in this work are summarized in Table 3.

3.7.2. Integration Challenges

Two critical challenges were addressed during system integration:
  • Latency Compensation
    The measured end-to-end communication delay, τ t o t a l = 8.2 ms , was compensated for by explicitly modeling the delay in the control loop and by relying on Pixhawk’s internal estimator-based adaptive mechanisms. To express this conceptually, the control signal can be written as
    u ( t ) = u P I D ( t ) + Δ u adapt ( t τ t o t a l )
    where Δ u adapt denotes the combined effect of Pixhawk’s estimator-driven adaptations, such as autotune-derived gain refinement, hover-throttle learning, and dynamic harmonic notch filtering, which improve robustness under delay and vibration. Importantly, Δ u adapt does not originate from any machine learning algorithm; Pixhawk does not implement ML-based control. These adaptations are classical estimator-based corrections built into ArduPilot and do not modify PID gains during flight.
  • Power Management
    A dynamic voltage-scaling algorithm was implemented to optimize energy efficiency by adjusting the processor frequency according to control error magnitude:
    f C P U = min f m a x , 0.2 + 0.8 e e m a x
    Equation (28) represents a heuristic DVFS (Dynamic Voltage and Frequency Scaling) policy proposed in this work. DVFS is a well-established approach for reducing processor power consumption (e.g., [39,40]), and the specific linear mapping used here was designed to scale CPU frequency with the normalized control-error magnitude. This approach reduced power consumption by approximately 32% during steady-flight operation without degrading control performance.

3.7.3. Stability Analysis

The closed-loop dynamics for each control axis can be expressed as
G c l ( s ) = K d s 2 + K p s + K i s 3 + ( a + K d ) s 2 + ( b + K p ) s + K i
where a and b are plant parameters. Final manually tuned control parameters obtained from flight testing are summarized in Table 4. Using the Routh–Hurwitz stability criterion, the following conditions were derived:
K i > 0
K p > a K i b + K i ( b + K i )
K d > K p ( b + K i ) K i a ( b + K i )

3.7.4. Delay-Aware Stability and Robustness Analysis

To account for the measured end-to-end latency τ t o t a l = 8.2 ms in the feedback loop, the open-loop transfer function of the system can be expressed as
L ( s ) = G c ( s ) G p ( s ) e s τ t o t a l
A first-order Padé approximation is used to represent the delay in a rational form:
e s τ t o t a l 1 s τ t o t a l 2 1 + s τ t o t a l 2
Substituting (34) into (33), the modified closed-loop characteristic equation becomes
1 + G c ( s ) G p ( s ) 1 s τ t o t a l 2 1 + s τ t o t a l 2 = 0
At the frequency domain level, the delay introduces an additional phase lag given by
ϕ τ ( ω ) ω τ t o t a l
A sufficient condition for maintaining closed-loop stability is that the available phase margin (PM) exceeds the phase consumed by the delay at the crossover frequency ω c :
PM > ω c τ t o t a l
Equivalently, the delay margin τ max that can be tolerated for a given phase margin is
τ max = PM ω c
Equations (33)–(38) follow the classical frequency-domain treatment of time-delay systems using Padé approximation and phase-margin-based delay margin analysis [41,42].
Using the experimentally observed bandwidths (Table 3) and τ t o t a l = 8.2 ms , the corresponding minimum phase margins required for robust stability are computed as shown in Table 5.
The results indicate that maintaining a phase margin above approximately 46° on the high-frequency attitude loops (pitch and roll) is sufficient to tolerate the measured delay, while altitude and yaw loops require smaller margins (26–36°). In practice, controller tuning targeted phase margins in the range of 55–65° to provide additional robustness against model uncertainties and environmental disturbances. Including the Padé delay model preserves the rational form of L ( s ) , enabling direct verification of the Routh–Hurwitz stability conditions in conjunction with Equations (29)–(32). When the available phase margin falls below the threshold values in Table 5, increasing K d to introduce an additional phase lead, slightly reducing K p to lower ω c , or incorporating a lead compensator can restore robust stability without compromising steady-state accuracy.

3.7.5. Frequency-Domain Gain Validation of the Attitude and Altitude Loops

Following the stability analysis presented earlier, this subsection provides a frequency-domain validation of the complete control subsystem by evaluating the Bode responses of all four regulated axes: roll, pitch, yaw, and altitude. These plots use the experimentally tuned PID gains from Table 4 and include the measured 8.2 ms feedback delay modeled via a first-order Padé approximation.
Rationale for Multi-Axis Bode Evaluation
Although the roll and pitch dynamics are theoretically identical due to the symmetric inertias ( I x x = I y y ), and yaw and altitude operate at substantially lower bandwidths, the reviewer requested validation beyond a single representative axis. Therefore, all four axes are included in the frequency-domain analysis to demonstrate (1) consistency between roll and pitch responses, (2) inherently greater delay margins in the yaw and altitude loops due to their lower crossover frequencies, and (3) overall robustness of the cascaded PID architecture across the full UAV control bandwidth.
Delay-Aware Open-Loop Models
For each axis, the corresponding linearized plant model (second-order for roll/pitch, first-order yaw dynamics, and vertical-thrust dynamics for altitude) was combined with the tuned PID controller and the Padé-modeled delay term. MATLAB’s bodeplot and margin functions were used to extract stability margins.
Stability-Margin Results
Representative numerical results for the roll axis (a high-bandwidth channel) were obtained as
Phase margin = 72 . 23 , ω c = 29.39 rad / s ( 4.68 Hz ) , ω c τ t o t a l = 13 . 81 .
Because the phase margin significantly exceeds the delay-induced phase consumption, the loop satisfies the delay-stability requirement. Pitch exhibits nearly identical values due to matched inertia and gains, while yaw and altitude show even larger margins because of their much lower crossover frequencies. Together, these results confirm robust delay tolerance for the entire UAV control subsystem.
Interpretation of the Multi-Axis Bode Plot
Figure 16 presents the overlaid Bode responses for all four axes. The roll and pitch curves overlap closely as expected, verifying the dynamic symmetry of the quadrotor. The yaw and altitude loops demonstrate lower bandwidths and thus experience proportionally smaller phase lag from the 8.2 ms delay, providing large intrinsic stability margins. The combined Bode analysis therefore validates that each degree of freedom satisfies the required robustness criteria under the measured system latency.

4. Simulation Results

The presented simulation results provide a comprehensive analysis of the quadrotor’s dynamic behavior, offering key insights into its stability, control effectiveness, and overall flight characteristics. Through time-domain visualizations of pitch, yaw, roll, and positional states (X, Y, and Z axes), the analysis enables the following:
  • Evaluation of attitude stability under external disturbances;
  • Assessment of control system performance;
  • Identification of dynamic anomalies;
  • Exploration of optimization pathways for both design and control algorithms.
To ensure consistency with our previously validated modeling approach (e.g., [27]), the full nonlinear 12-state quadrotor dynamics were linearized about the hover operating point using MATLAB’s linmod function. The resulting LTI state–space model was then used for PID gain selection and time-domain simulation within MATLAB/Simulink (R2023b). The simulation environment employed the Control System Toolbox and the Simulink solver suite with a fixed-step integration. This linearization approach has been demonstrated to closely approximate the local hover-region dynamics of the same quadrotor platform.

4.1. Positional State Analysis

3D Trajectory Tracking

The three-dimensional trajectory, illustrated in Figure 17, demonstrates the quadrotor’s altitude and positional control performance through the following:
  • A rapid initial ascent along the Z-axis;
  • Lateral motion in the X Y plane during stabilization;
  • Steady-state maintenance at the target altitude.
For consistency across all visual results, a unified color scheme is used in all trajectory and attitude plots: the reference or desired signal is shown in blue, while the measured or actual response is shown in red. This convention is applied uniformly throughout the manuscript.
The trajectory begins at ground level and exhibits a rapid initial climb, indicating effective altitude control. As the quadrotor reaches the desired height, it transitions into lateral motion within the X Y plane before stabilizing at the target altitude of 5 m. The deviation between the actual and desired Z-coordinate provides a direct measure of altitude-tracking accuracy. Minor oscillations reflect transient disturbances, whereas persistent fluctuations could indicate underdamped behavior or tuning deficiencies. A more comprehensive assessment would require additional time-series data on altitude, control inputs, and external conditions to fully characterize system performance and identify potential improvement areas.

4.2. Attitude Control Analysis

4.2.1. Pitch Dynamics

Key observations derived from Figure 18 include the following:
  • Initial nose-down orientation ( 0.9 rad);
  • Overshoot of approximately 32% beyond the desired pitch;
  • Settling time of 4.2 s;
  • Steady-state error of 0.05 rad.
Following the initial deviation, the quadrotor exhibits damped oscillations around the reference pitch angle before converging to a near-steady value. This response indicates that the control parameters are reasonably tuned, though further refinement could reduce both overshoot and steady-state error. Incorporating advanced disturbance-rejection strategies or enhancing the dynamic model fidelity may further improve control precision.
All attitude-related figures are reformatted to use consistent axis labeling with units, standardized font sizing, and a uniform legend style positioned in the upper-right corner to maintain coherence across the manuscript.

4.2.2. Yaw Behavior

The yaw response characteristics, presented in Figure 19, can be summarized as follows:
  • Initial leftward deviation ( 3 rad);
  • Rapid convergence with a peak deviation of 0.15 rad;
  • Steady-state error of 0.02 rad;
  • Effective rejection of minor disturbances.
The yaw dynamics exhibit fast convergence to the target orientation with minimal residual error, demonstrating robust heading control and disturbance tolerance. While the results indicate satisfactory performance, further improvements may be achieved through gain fine-tuning, enhanced sensor calibration, and the application of adaptive control strategies to mitigate external perturbations.

4.2.3. Roll Response

The roll dynamics analysis, illustrated in Figure 20, reveals the following key characteristics:
  • Initial leftward tilt of approximately 0.1 rad;
  • Maximum overshoot of 12%;
  • Settling time of 3.8 s;
  • Strong robustness against external disturbances.
The roll angle rapidly converges toward the desired reference with minimal deviation, exhibiting stable and consistent behavior. The system maintains a small steady-state error and demonstrates reliable disturbance rejection. Although the performance is satisfactory, further improvements could be realized through enhanced sensor calibration, implementation of advanced disturbance-rejection strategies, and fine-tuning of controller parameters.

4.3. Control System Performance Evaluation

The combined attitude control performance metrics are summarized in Table 6, comparing pitch, yaw, and roll responses based on overshoot, settling time, steady-state error, and disturbance-rejection capability.

4.4. Optimization Enhancement Refinements

Based on the simulation outcomes, several enhancement strategies are proposed to further improve the quadrotor’s control performance and robustness.

4.4.1. Control Algorithm Optimization

  • Implement adaptive PID gain scheduling to dynamically adjust controller parameters in response to flight conditions.
  • Integrate disturbance observers to enhance wind disturbance rejection capability.
  • Incorporate feedforward compensation to improve system responsiveness and reduce lag.

4.4.2. System Identification

  • Conduct precise measurements of the quadrotor’s moment of inertia for improved modeling accuracy.
  • Estimate aerodynamic drag coefficients under varied operating conditions.
  • Characterize motor dynamics to account for nonlinearities in thrust generation and response delay.

4.4.3. Fault Detection

  • Employ residual-based monitoring techniques to identify abnormal system behavior.
  • Introduce sensor redundancy to ensure fault tolerance and improve reliability.
  • Apply adaptive thresholding methods to enhance real-time fault detection accuracy.

4.4.4. Simulation Analysis Outcomes

  • Demonstrated effective baseline attitude control.
  • Identified the need for overshoot minimization.
  • Highlighted the importance of robust disturbance-rejection mechanisms.
  • Indicated potential benefits of integrating adaptive control schemes.
The quantified performance metrics derived from simulations establish concrete design targets for subsequent control refinements and hardware optimization efforts.

5. Experimental Results and Discussion

This section presents the experimental validation of the autonomous quadrotor’s capability to track mobile ground targets. The experiments provide a comprehensive assessment of real-world performance by evaluating tracking accuracy in the X Y plane, altitude stability along the Z-axis, attitude precision (yaw, pitch, and roll), and geographic coordinate consistency. Field tests were conducted in Al Ain City, with video documentation provided in [43].
To ensure consistent comparison between the simulation framework and real-flight validation, a unified set of key performance indicators (KPIs) is adopted throughout this section. These KPIs include the following:
  • RMS tracking error;
  • Maximum deviation from the reference trajectory;
  • Settling time;
  • Steady-state error.
Using the same KPI set for both simulation and experiments resolves the mismatch between earlier transient-based simulation metrics and RMS-based experimental reporting, enabling direct performance comparison across all evaluated scenarios.

5.1. XY Plane Tracking Performance

The experimental setup comprised a mobile ground rover acting as the target, which continuously transmitted its real-time position to the quadrotor. The onboard control system processed this data at a sampling rate of 20 Hz. To ensure robust and realistic validation, all experiments were conducted outdoors over varying terrain and environmental conditions. The X Y positional states of both the rover and the drone are illustrated in Figure 21 and analyzed in the following discussion.

5.1.1. Quantitative Analysis

Key performance indicators derived from Figure 21 are summarized in Table 7.
The results indicate a strong correlation between the drone and rover trajectories, with an average tracking error below 1 m and a maximum deviation of 2.15 m. The high correlation coefficient ( r = 0.98 ) confirms excellent path-following performance and synchronization accuracy in dynamic motion.

5.1.2. Error Sources

A complete understanding of the drone’s real-world performance requires analyzing the factors contributing to observed deviations. The system experienced a consistent communication latency of approximately 0.98 ms and a short initialization delay during calibration. In addition, environmental influences such as wind gusts measured at up to 4.2 m/s introduced mild positional fluctuations. These effects collectively highlight the importance of incorporating real-time latency compensation and robust disturbance-rejection mechanisms in future implementations.
It is important to note that the present experiments were conducted under moderate wind conditions (up to 4.2 m/s) with standard GPS availability and low to medium target speeds. Due to airspace safety restrictions and hardware limitations of the current platform, controlled testing under strong wind fields (5–8 m/s), GPS-denied operation, and tracking of high-speed ground targets (3–8 m/s) was not feasible in this study. These conditions represent important next-stage scenarios for expanded validation.

5.2. Altitude Control Analysis

The altitude profile presented in Figure 22 demonstrates a highly responsive and stable vertical control system. The quadrotor achieved a target altitude of 5 m within 2.8 s, corresponding to an average climb rate of 1.79 m/s. During steady flight, the mean altitude was maintained at 5.12 m with a low standard deviation of 0.43 m, indicating effective compensation against vertical disturbances. The 95% percentile range (4.35–5.89 m) confirms that altitude deviations remained within acceptable operational limits. A smooth and controlled descent was achieved at a rate of 0.91 m/s, demonstrating precise control authority during landing. Overall, these results verify the robustness and responsiveness of the altitude control subsystem under realistic flight conditions.

5.3. Yaw Control Performance

The yaw tracking performance, illustrated in Figure 23, provides insights into the rotational stability and responsiveness of the control system. The quadrotor exhibited rapid convergence to the commanded yaw angle, achieving a settling time of 1.8 s within a ±5° tolerance band. However, a peak overshoot of 12.7° was observed, suggesting a slightly underdamped response that may benefit from fine-tuning of the controller gains. Despite this transient behavior, the system achieved a steady-state error of only 1.3°, confirming its ability to maintain precise orientation control over extended operation. Collectively, these results demonstrate a highly responsive yaw control system that achieves fast stabilization and accurate heading retention, with minor trade-offs in overshoot behavior that can be mitigated through adaptive tuning strategies.

5.4. Pitch and Roll Behavior

Figure 24 illustrates the quadrotor’s pitch and roll responses during flight. The data reveal that both angles exhibit continuous fluctuations throughout the test, with frequent and pronounced deviations from the nominal zero-degree reference. These variations indicate that the quadrotor is actively and continuously adjusting its orientation to counteract external disturbances, primarily the variable wind gusts discussed earlier.
The high frequency and amplitude of these corrections often exceeding ±5° and occasionally reaching beyond ±10° reflect the responsiveness of the control system as it maintains flight stability. The plots demonstrate that the system remains highly dynamic, executing rapid adjustments to preserve trajectory accuracy despite persistent aerodynamic perturbations. Although the oscillations are relatively large, they remain well bounded and controlled through the implementation of auto-tuned PID parameters, underscoring the controller’s adaptability and robustness.
The corresponding attitude control parameters are summarized in Table 8.

5.5. Geographic Coordinate Tracking

Figure 25 presents the geographic coordinate tracking performance of the quadrotor. The system achieved a mean positional error of 1.2 m, representing the average distance between the estimated and true coordinates, thereby indicating accurate localization. The 95% circular error probable (CEP) of 2.8 m further quantifies spatial precision, defining the radius within which the quadrotor’s estimated position is expected to lie 95% of the time.
An initial alignment delay of 4.1 s was recorded, corresponding to the time required for the GPS-based navigation system to achieve a stable and precise satellite lock. Collectively, these results confirm a robust and reliable positioning framework characterized by high spatial accuracy, predictable initialization behavior, and consistent performance during continuous flight operations.

5.6. Simulation and Experimental Correlation

To evaluate the fidelity of the proposed dynamic model, the key trajectory and attitude responses obtained from simulation were compared against those measured during real-world flight tests. Table 9 presents representative metrics for X Y position tracking and yaw control. The comparison demonstrates that the simulated results closely align with experimental data, validating the dynamic model and controller tuning approach.
The results indicate strong agreement between simulation and experimental outcomes, with deviations below 10% for key translational and rotational parameters. Minor discrepancies are primarily attributed to aerodynamic disturbances, actuator saturation, and sensor latency effects not fully captured in the simulation model. Nevertheless, the close correspondence between the two datasets confirms the validity of the mathematical formulation and its suitability for controller design and performance prediction.

5.7. Statistical Robustness and Repeatability Analysis

To assess the consistency and reliability of the proposed control system, multiple flight trials were conducted under similar environmental conditions. Each experiment evaluated the system’s ability to track a moving ground target while maintaining stable attitude and altitude control. The resulting tracking and attitude errors were analyzed statistically across N = 5 independent trials. Table 10 summarizes the key performance indicators, including the mean, standard deviation (SD), and 95 % confidence interval (CI) for the primary flight variables.
The low standard deviations and narrow confidence intervals confirm the system’s strong repeatability across multiple runs. Variations between trials remained within 10 % of the mean values, indicating robust controller performance under minor environmental and aerodynamic fluctuations. The results further validate the reliability of the dynamic model and tuning approach used for the quadrotor’s real-time control system.

5.8. Comparative Evaluation with Existing Studies

To contextualize the proposed system’s performance, Table 11 compares key tracking metrics against representative UAV tracking studies employing LQR, MPC, and adaptive PID approaches. Reported metrics were extracted directly from the corresponding publications and standardized where possible. It is important to note that the values originate from different UAV platforms, sensing modalities, flight trajectories, and environmental conditions; therefore, the table provides a qualitative cross-study context rather than a direct benchmark under identical conditions.
The comparison illustrates that the proposed delay-aware PID architecture performs within the typical range reported across prior UAV tracking studies. Because the referenced results were obtained under different experimental conditions, the table is intended only to position the achieved performance relative to the existing literature rather than to imply a controlled or fairness-matched benchmark.
The proposed architecture achieves tracking accuracy and transient performance comparable to those reported for more computationally intensive strategies such as MPC and 2-DOF PID, while maintaining significantly lower implementation complexity and real-time feasibility on embedded hardware. These characteristics make the approach particularly suitable for mission-critical applications prioritizing reliability and power efficiency.

6. Discussion

6.1. System Performance

The developed system demonstrated strong real-time performance, achieving mean tracking errors below one meter while maintaining high attitude stability across all control axes. The integration of a latency-compensated PID control structure enabled reliable tracking of the ground rover even under dynamic environmental conditions and mild communication delays. The close alignment between simulation and experimental results further validates the accuracy of the proposed dynamic model and the controller’s tuning strategy. Statistical analysis confirmed repeatability and robustness, with low standard deviations and narrow confidence intervals across multiple test runs. These outcomes collectively demonstrate that the control framework effectively balances responsiveness, stability, and computational efficiency attributes essential for real-time UAV-UGV cooperative missions.
It should be noted that the current simulation environment does not explicitly incorporate several real-world disturbance sources, such as the following:
  • Wind gusts and aerodynamic cross-coupling;
  • Sensor noise and bias drift;
  • Actuator latency and motor bandwidth limitations;
  • Communication or processing jitter.
As a result, the simulated trajectories represent an idealized baseline, whereas the real-flight experiments naturally reflect these perturbations. This difference explains the small deviations observed between simulation and outdoor performance while maintaining consistent overall trends. Future work will extend the simulation framework to include stochastic wind models, sensor-noise injection, actuator delay emulation, and communication-induced jitter to further reduce the gap between simulation and real-world operation.
A complementary time-series evaluation of the rover-following experiment shows that tracking error increases modestly during rapid directional changes but remains well bounded and quickly returns to steady-state levels. This behavior is consistent with the system’s delay-aware bandwidth allocation and confirms stable transient response under naturally occurring disturbances.

Time-Aligned Tracking and Disturbance-Response Analysis

To complement the spatial X Y trajectory analysis, time-aligned position and velocity profiles were extracted from the flight log. Figure 26 presents x ( t ) , y ( t ) , and the corresponding velocity magnitude v ( t ) during the rover-following experiment. The UAV maintains close temporal synchrony with the rover, with short transient deviations occurring during rapid target accelerations. These deviations coincide with peaks in the velocity profile, indicating the influence of dynamic coupling and communication delay.
To assess the behavior of the closed-loop system under naturally occurring disturbances, we isolated time intervals during which onboard logs indicated elevated wind gusts (3.5–4.2 m/s). During these periods, the time-aligned tracking error e ( t ) shows a bounded deviation of approximately 0.35 m, without divergence or oscillatory growth. This confirms that the controller maintains stable transient performance despite additional aerodynamic loading. Although controlled experiments under strong-wind conditions or aggressive target accelerations were not feasible due to operational constraints, the extracted disturbance–response trends provide quantitative evidence of robustness in realistic outdoor environments.

6.2. Improvement Recommendations

The experimental results and analytical evaluations establish a robust foundation for continued development of adaptive UAV tracking systems. To enhance the system’s capabilities further, several improvements are recommended. The communication link can be upgraded to a 5G-based reduced-latency protocol to improve control responsiveness during long-range operations. A gain-scheduled adaptive PID architecture may be introduced to dynamically tune controller gains in response to varying flight regimes, thereby improving transient response and disturbance rejection. Incorporating a multi-sensor fusion framework combining RTK-GPS, LiDAR, and visual–inertial odometry would improve positional accuracy in GPS-degraded or denied environments. Finally, active battery management and optimized power distribution could extend endurance and enable longer continuous missions. These enhancement pathways, summarized in Table 12, provide a clear roadmap for advancing the system toward higher autonomy and operational robustness.

7. Conclusions

This study presented the design, modeling, and experimental validation of a delay-aware hybrid PID control framework for real-time UAV-UGV cooperative tracking. By integrating classical PID regulation with Pixhawk’s estimator-based adaptive mechanisms (autotune, hover-throttle learning, and dynamic harmonic notch filtering) and explicit latency-compensation modeling, the proposed architecture achieved robust trajectory tracking with a mean positional error below one meter. Analytical validation using Padé-modeled delay representation and Routh–Hurwitz stability criteria confirmed closed-loop stability under communication delays, while field experiments demonstrated consistent performance across varying environmental conditions. Statistical robustness analysis further verified repeatability and reliability across multiple trials, emphasizing the framework’s real-world applicability.
The developed control system provides a practical, scalable, and computationally efficient solution for cooperative aerial–ground missions. Its ability to maintain stable flight and accurate target tracking under latency and disturbance effects highlights its suitability for autonomous inspection, environmental monitoring, and search-and-rescue applications. Compared with nonlinear MPC and 2-DOF PID controllers, the framework offers equivalent control precision with significantly lower computational cost, establishing a strong foundation for latency-resilient UAV deployments.
Future research will explore gain-scheduled PID strategies and enhanced estimator-based adaptive mechanisms, without employing machine learning control loops, as Pixhawk does not utilize ML for PID tuning. Additionally, integrating advanced sensor-fusion technique such as RTK-GPS, LiDAR, and visual–inertial odometry will further improve localization accuracy in GPS-denied environments. Extending the framework to multi-agent coordination and collaborative mission planning will broaden its applicability to large-scale cooperative aerial–ground robotic operations. Future work will also include systematic evaluation under extreme operating conditions, such as strong wind fields (5–8 m/s), GPS-denied navigation using visual–inertial odometry, and the tracking of high-speed moving targets (3–8 m/s). These experiments were not performed in the present study due to airspace and hardware safety constraints but constitute essential next steps for validating the system’s robustness in highly dynamic and mission-critical environments. In future extensions, learning-enhanced delay compensation or adaptive gain adjustment may also be explored as separate research directions. Although not part of the present framework, such approaches could provide an additional layer of autonomy and disturbance robustness in rapidly changing environments. Future work will also include controlled trials under stronger wind fields and higher target speeds to systematically characterize performance limits and extend the disturbance–response analysis presented here.

Author Contributions

Conceptualization, M.A., B.A. and T.N.D.; methodology, M.A., B.A., F.Y.M. and M.E.; software, M.A. and F.Y.M.; validation, M.A., B.A., F.Y.M., M.E. and M.M.K.; investigation, M.A., F.Y.M., M.E. and M.W.; resources, M.M.K. and T.N.D.; writing original draft preparation, B.A.; writing review and editing, B.A., M.M.K. and T.N.D.; supervision, M.W. and T.N.D.; funding acquisition, T.N.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the United Arab Emirates University, grant number (G00004569).

Data Availability Statement

No publicly available datasets were generated or analyzed in this study. All data supporting the findings of this work are available from the corresponding author upon reasonable request.

Acknowledgments

The authors used ChatGPT 5.1 solely for proofreading and grammatical correction. All content was reviewed and approved by the authors, who take full responsibility for the final manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Anderson, K.; Gaston, K.J. Lightweight unmanned aerial vehicles will revolutionize spatial ecology. Front. Ecol. Environ. 2013, 11, 138–146. [Google Scholar] [CrossRef]
  2. Idrissi, M.; Salami, M.; Annaz, F. A review of quadrotor unmanned aerial vehicles: Applications, architectural design and control algorithms. J. Intell. Robot. Syst. 2022, 104, 22. [Google Scholar] [CrossRef]
  3. Alansari, M.; Abdul Hay, O.; Alansari, S.; Javed, S.; Shoufan, A.; Zweiri, Y.; Werghi, N. Drone-person tracking in uniform appearance crowd: A new dataset. Sci. Data 2024, 11, 15. [Google Scholar] [CrossRef]
  4. Mellinger, D. Trajectory Generation and Control for Quadrotors; University of Pennsylvania: Philadelphia, PA, USA, 2012. [Google Scholar]
  5. Saviolo, A.; Loianno, G. Learning quadrotor dynamics for precise, safe, and agile flight control. Annu. Rev. Control 2023, 55, 45–60. [Google Scholar] [CrossRef]
  6. Ali, K.S.; Vanelli, C.A.; Biesiadecki, J.J.; Maimone, M.W.; Cheng, Y.; San Martin, A.M.; Alexander, J.W. Attitude and position estimation on the mars exploration rovers. In Proceedings of the 2005 IEEE International Conference on Systems, Man and Cybernetics, Waikoloa, HI, USA, 10–12 October 2005; Volume 1, pp. 20–27. [Google Scholar]
  7. Hussein, M.; Nouacer, R.; Corradi, F.; Ouhammou, Y.; Villar, E.; Tieri, C.; Castiñeira, R. Key technologies for safe and autonomous drones. Microprocess. Microsyst. 2021, 87, 104348. [Google Scholar] [CrossRef]
  8. Bouabdallah, S.; Noth, A.; Siegwart, R. PID vs LQ control techniques applied to an indoor micro quadrotor. In Proceedings of the 2004 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) (IEEE Cat. No.04CH37566), Sendai, Japan, 28 September–2 October 2004; Volume 3, pp. 2451–2456. [Google Scholar] [CrossRef]
  9. Lim, S.; Yook, Y.; Heo, J.P.; Im, C.G.; Ryu, K.H.; Sung, S.W. A new PID controller design using differential operator for the integrating process. Comput. Chem. Eng. 2023, 170, 108105. [Google Scholar] [CrossRef]
  10. Vaupel, Y.; Hamacher, N.C.; Caspari, A.; Mhamdi, A.; Kevrekidis, I.G.; Mitsos, A. Accelerating nonlinear model predictive control through machine learning. J. Process control 2020, 92, 261–270. [Google Scholar] [CrossRef]
  11. Isaza, J.; Muñoz, D.A.; Alvarez, H. Efficient solution of nonlinear model predictive control by a restricted enumeration method. Enfoque UTE 2018, 9, 13–23. [Google Scholar] [CrossRef]
  12. Mellinger, D.; Kumar, V. Minimum snap trajectory generation and control for quadrotors. In Proceedings of the 2011 IEEE International Conference on Robotics and Automation, Shanghai, China, 9–13 May 2011; pp. 2520–2525. [Google Scholar]
  13. Alqudsi, Y.; Makaraci, M.; Kassem, A.; El-Bayoumi, G. A numerically-stable trajectory generation and optimization algorithm for autonomous quadrotor UAVs. Robot. Auton. Syst. 2023, 170, 104532. [Google Scholar] [CrossRef]
  14. Shen, S.; Mulgaonkar, Y.; Michael, N.; Kumar, V. Vision-Based State Estimation and Trajectory Control Towards High-Speed Flight with a Quadrotor. In Proceedings of the Robotics: Science and Systems, Berlin, Germany, 24–28 June 2013; Volume 1, p. 32. [Google Scholar]
  15. Gandhi, D.; Pinto, L.; Gupta, A. Learning to fly by crashing. In Proceedings of the 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Vancouver, BC, Canada, 24–28 September 2017; pp. 3948–3955. [Google Scholar]
  16. Ali, B.; Ayaz, Y.; Jamil, M.; Gilani, S.O.; Muhammad, N. Improved method for stereo vision-based human detection for a mobile robot following a target person. S. Afr. J. Ind. Eng. 2015, 26, 102–119. [Google Scholar] [CrossRef]
  17. Mashood, A.; Dirir, A.; Hussein, M.; Noura, H.; Awwad, F. Quadrotor object tracking using real-time motion sensing. In Proceedings of the 2016 5th International Conference on Electronic Devices, Systems and Applications (ICEDSA), Ras Al Khaimah, United Arab Emirates, 6–8 December 2016; pp. 1–4. [Google Scholar]
  18. Greatwood, C.; Bose, L.; Richardson, T.; Mayol-Cuevas, W.; Chen, J.; Carey, S.J.; Dudek, P. Tracking control of a UAV with a parallel visual processor. In Proceedings of the 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Vancouver, BC, Canada, 24–28 September 2017; pp. 4248–4254. [Google Scholar]
  19. Zou, J.T.; Dai, X.Y. The development of a visual tracking system for a drone to follow an omnidirectional mobile robot. Drones 2022, 6, 113. [Google Scholar] [CrossRef]
  20. Hwangbo, J.; Lee, J.; Dosovitskiy, A.; Bellicoso, D.; Tsounis, V.; Koltun, V.; Hutter, M. Learning agile and dynamic motor skills for legged robots. Sci. Robot. 2019, 4, eaau5872. [Google Scholar] [CrossRef]
  21. Kaufmann, E.; Loquercio, A.; Ranftl, R.; Müller, M.; Koltun, V.; Scaramuzza, D. Deep drone acrobatics. arXiv 2020, arXiv:2006.05768. [Google Scholar] [CrossRef]
  22. Kim, H.S.; Hong, A.; Park, J.B. Vision-based Line Tracking for an Indoor Micro Quadrotor. J. Int. Counc. Electr. Eng. 2013, 3, 245–249. [Google Scholar] [CrossRef]
  23. Sharma, D.D.; Singh, A. LSTM-Based Predictive Leader-Follower Control Scheme. In Innovations in Electrical and Electronics Engineering: Proceedings of ICEEE 2024, Volume 2; Springer: Singapore, 2025; Volume 1295, p. 185. [Google Scholar]
  24. Lo, L.Y.; Yiu, C.H.; Tang, Y.; Yang, A.S.; Li, B.; Wen, C.Y. Dynamic object tracking on autonomous UAV system for surveillance applications. Sensors 2021, 21, 7888. [Google Scholar] [CrossRef]
  25. Sun, L.; Li, X.; Yang, Z.; Gao, D. Visual object tracking based on the motion prediction and block search in uav videos. Drones 2024, 8, 252. [Google Scholar] [CrossRef]
  26. Zhou, B.; Gao, F.; Pan, J.; Shen, S. Robust real-time UAV replanning using guided gradient-based optimization and topological paths. In Proceedings of the 2020 IEEE International Conference on Robotics and Automation (ICRA), Paris, France, 31 May–31 August 2020; pp. 1208–1214. [Google Scholar]
  27. Elhesasy, M.; Dief, T.N.; Atallah, M.; Okasha, M.; Kamra, M.M.; Yoshida, S.; Rushdi, M.A. Non-linear model predictive control using CasADi package for trajectory tracking of quadrotor. Energies 2023, 16, 2143. [Google Scholar] [CrossRef]
  28. Xu, Y.; Wang, X.; Zhang, J. Real-time parameter identification method for a novel blended-wing-body tiltrotor UAV. Measurement 2022, 196, 111220. [Google Scholar] [CrossRef]
  29. PX4 Autopilot Development Team. PX4 Guide (v1.16): Controller Diagrams; PX4 Autopilot Development Team: Zurich, Switzerland, 2024. [Google Scholar]
  30. Ziegler, J.G.; Nichols, N.B. Optimum settings for automatic controllers. Trans. ASME 1942, 64, 759–768. [Google Scholar] [CrossRef]
  31. Utami, A.; Yuniar, R.; Giyantara, A.; Saputra, A. Cohen-Coon PID tuning method for self-balancing robot. In Proceedings of the 2022 International Symposium on Electronics and Smart Devices (ISESD), Bandung, Indonesia, 8–9 November 2022; pp. 1–5. [Google Scholar]
  32. Anitha, T.; Gopu, G.; Sindhuja, A.; Kavimalar, K. Design of Various Tuning Methods for a Breathing Process. In Proceedings of the International Conference on Smart Data Intelligence (ICSMDI 2021), Trichy Dt, India, 29–30th April 2021. [Google Scholar]
  33. Åström, K.J.; Hägglund, T. Advanced PID Control; ISA: Research Triangle Park, NC, USA, 2006. [Google Scholar]
  34. Ahmed, S.F.; Kushsairy, K.; Bakar, M.I.A.; Hazry, D.; Joyo, M.K. Attitude stabilization of quad-rotor (UAV) system using fuzzy PID controller: An experimental test. In Proceedings of the 2015 Second International Conference on Computing Technology and Information Management (ICCTIM), Kuala Lumpur, Malaysia, 21–23 April 2015; pp. 99–104. [Google Scholar]
  35. Ali, B.; Mughal, A.M. Decoupled optimal control of 3D biped for human voluntary motion. Biomed. Phys. Eng. Express 2024, 10, 025014. [Google Scholar] [CrossRef]
  36. Ali, B.; Mughal, A.M. Modeling and optimal control of twist and tilt biped for sit to stand. Meas. Control 2025, 58, 749–760. [Google Scholar] [CrossRef]
  37. Wei, H.; Shi, Y. MPC-based motion planning and control enables smarter and safer autonomous marine vehicles: Perspectives and a tutorial survey. IEEE/CAA J. Autom. Sin. 2022, 10, 8–24. [Google Scholar] [CrossRef]
  38. PX4 Autopilot Development Team. PX4 User Guide (v1.16): EKF2 Estimator and Sensor Fusion; PX4 Autopilot Development Team: Zurich, Switzerland, 2024. [Google Scholar]
  39. Burd, T.D.; Brodersen, R.W. Processor design for portable systems. J. VLSI Signal Process. 2001, 28, 275–291. [Google Scholar]
  40. Pathania, A.; Shafique, M.; Henkel, J. Energy-efficient embedded systems. IEEE Des. Test 2015, 32, 60–68. [Google Scholar]
  41. Franklin, G.F.; Powell, J.D.; Emami-Naeini, A. Feedback Control of Dynamic Systems, 7th ed.; Pearson: Upper Saddle River, NJ, USA, 2015. [Google Scholar]
  42. Ogata, K. Modern Control Engineering, 5th ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2010. [Google Scholar]
  43. YouTube. Quadrotor Demonstration [Video]. 2025. Available online: https://www.youtube.com/watch?v=VQZ2mqn5EPM&t=29s (accessed on 22 September 2025).
Figure 1. Quadrotor design with KK flight controller, shown for structural illustration; experiments used Pixhawk.
Figure 1. Quadrotor design with KK flight controller, shown for structural illustration; experiments used Pixhawk.
Automation 06 00093 g001
Figure 2. Object tracking using a system of camera and laser rangefinders. The arrows indicate the flow of information between components.
Figure 2. Object tracking using a system of camera and laser rangefinders. The arrows indicate the flow of information between components.
Automation 06 00093 g002
Figure 3. Quadrotor tracking the target Rover (adapted from Greatwood et al. [18]).
Figure 3. Quadrotor tracking the target Rover (adapted from Greatwood et al. [18]).
Automation 06 00093 g003
Figure 4. Inertial and body frames of reference.
Figure 4. Inertial and body frames of reference.
Automation 06 00093 g004
Figure 5. Quadrotor arm geometry and rotor layout.
Figure 5. Quadrotor arm geometry and rotor layout.
Automation 06 00093 g005
Figure 6. Overall cascaded control architecture used in this work, illustrating the position, velocity, attitude, and rate control loops together with the motor mixer.
Figure 6. Overall cascaded control architecture used in this work, illustrating the position, velocity, attitude, and rate control loops together with the motor mixer.
Automation 06 00093 g006
Figure 7. Controller–Plant–Feedback structure used for each control axis.
Figure 7. Controller–Plant–Feedback structure used for each control axis.
Automation 06 00093 g007
Figure 8. PID internal control structure with separate blocks defining proportional P, integral I, and derivative D.
Figure 8. PID internal control structure with separate blocks defining proportional P, integral I, and derivative D.
Automation 06 00093 g008
Figure 9. Simulink implementation of the PID controllers.
Figure 9. Simulink implementation of the PID controllers.
Automation 06 00093 g009
Figure 10. State-estimation pipeline used in this work, based on the PX4 EKF2 sensor fusion framework. The estimator fuses IMU, GNSS, barometer, and magnetometer data using FIFO buffering, per-sensor delay parameters, and a fusion time horizon to provide delay-compensated state estimates to the controller.
Figure 10. State-estimation pipeline used in this work, based on the PX4 EKF2 sensor fusion framework. The estimator fuses IMU, GNSS, barometer, and magnetometer data using FIFO buffering, per-sensor delay parameters, and a fusion time horizon to provide delay-compensated state estimates to the controller.
Automation 06 00093 g010
Figure 11. Quadrotor airframe configuration.
Figure 11. Quadrotor airframe configuration.
Automation 06 00093 g011
Figure 12. Standard configurations of brushed (BDC) and brushless DC (BLDC) motor designs.
Figure 12. Standard configurations of brushed (BDC) and brushless DC (BLDC) motor designs.
Automation 06 00093 g012
Figure 13. Electronic Speed Controller (ESC).
Figure 13. Electronic Speed Controller (ESC).
Automation 06 00093 g013
Figure 14. Pixhawk 6C connection layout used in the experimental platform (excluding external data-logging equipment such as the Jetson Nano).
Figure 14. Pixhawk 6C connection layout used in the experimental platform (excluding external data-logging equipment such as the Jetson Nano).
Automation 06 00093 g014
Figure 15. Flight mode assignment interface (red frames show flight mode selection window).
Figure 15. Flight mode assignment interface (red frames show flight mode selection window).
Automation 06 00093 g015
Figure 16. Open-loop Bode plots of all four regulated axes (roll, pitch, yaw, and altitude) including tuned PID gains and modeled 8.2 ms delay.
Figure 16. Open-loop Bode plots of all four regulated axes (roll, pitch, yaw, and altitude) including tuned PID gains and modeled 8.2 ms delay.
Automation 06 00093 g016
Figure 17. Quadrotor position in X, Y, and Z coordinates during altitude tracking at 5 m.
Figure 17. Quadrotor position in X, Y, and Z coordinates during altitude tracking at 5 m.
Automation 06 00093 g017
Figure 18. Pitch angle response compared to the desired trajectory.
Figure 18. Pitch angle response compared to the desired trajectory.
Automation 06 00093 g018
Figure 19. Yaw angle response compared to the desired trajectory.
Figure 19. Yaw angle response compared to the desired trajectory.
Automation 06 00093 g019
Figure 20. Roll angle response compared to the desired trajectory.
Figure 20. Roll angle response compared to the desired trajectory.
Automation 06 00093 g020
Figure 21. XY trajectory comparison between rover (blue) and drone (red).
Figure 21. XY trajectory comparison between rover (blue) and drone (red).
Automation 06 00093 g021
Figure 22. Altitude (Z) profile during tracking test.
Figure 22. Altitude (Z) profile during tracking test.
Automation 06 00093 g022
Figure 23. Yaw angle tracking performance.
Figure 23. Yaw angle tracking performance.
Automation 06 00093 g023
Figure 24. Pitch and roll angle responses during flight.
Figure 24. Pitch and roll angle responses during flight.
Automation 06 00093 g024
Figure 25. Latitude–longitude tracking performance.
Figure 25. Latitude–longitude tracking performance.
Automation 06 00093 g025
Figure 26. Time-aligned tracking response of the rover–drone system, showing x ( t ) , y ( t ) , velocity profiles, and the corresponding tracking error e ( t ) .
Figure 26. Time-aligned tracking response of the rover–drone system, showing x ( t ) , y ( t ) , velocity profiles, and the corresponding tracking error e ( t ) .
Automation 06 00093 g026
Table 1. Quadrotor model parameters.
Table 1. Quadrotor model parameters.
ParameterSymbolValue
Massm1.5 kg
Arm length (CG to rotor)l0.25 m
Roll inertia I x x 0.03 kg·m2
Pitch inertia I y y 0.03 kg·m2
Yaw inertia I z z 0.04 kg·m2
Cross inertias (symmetry) I x y , I x z , I y z 0 (symmetric frame)
Thrust coefficientk 5.6 × 10 6 N·s2
Drag coefficientb 7.5 × 10 8 N·m2
Rotor inertia J m 3.2 × 10 5 kg·m2
Maximum rotor speed ω max 850 rad/s
Gravitational accelerationg9.81 m/s2
Table 2. Quadrotor components.
Table 2. Quadrotor components.
ComponentQuantity
Air Frame1
Propellers/Rotors4
Motors4
ESCs4
Battery1
Transmitter/Receiver1
Controller1
Table 3. Real-time scheduling.
Table 3. Real-time scheduling.
TaskFrequencyDeadline
Attitude Control500 Hz2 ms
Position Control100 Hz10 ms
Data Logging50 Hz20 ms
Table 4. Optimized control parameters.
Table 4. Optimized control parameters.
Controller K p K i K d BW (Hz)
Altitude2.450.781.1512.3
Roll1.820.480.8815.1
Pitch1.790.470.8515.4
Yaw1.230.310.578.7
Table 5. Minimum phase margin required to tolerate τ t o t a l = 8.2 ms.
Table 5. Minimum phase margin required to tolerate τ t o t a l = 8.2 ms.
Axis/LoopBandwidth f c (Hz) ω c (rad/s) PM min (deg)
Altitude12.377.336.3
Roll15.194.944.6
Pitch15.496.845.4
Yaw8.754.725.7
Table 6. Attitude control performance metrics.
Table 6. Attitude control performance metrics.
MetricPitchYawRoll
Maximum Overshoot (%)321512
Settling Time (s)4.23.53.8
Steady-State Error (rad)0.050.020.03
Disturbance RejectionModerateGoodGood
Table 7. XY tracking performance metrics.
Table 7. XY tracking performance metrics.
MetricValue
Mean Tracking Error0.82 m
Maximum Deviation2.15 m
Initial Alignment Time3.2 s
Correlation Coefficient0.98
Table 8. Attitude control performance.
Table 8. Attitude control performance.
MetricPitchRollYaw
RMS Error (°)2.11.83.2
Maximum Deviation (°)8.76.414.2
Bandwidth (rad/s)4.24.53.1
Table 9. Simulation–experiment correlation metrics.
Table 9. Simulation–experiment correlation metrics.
ParameterSimulationExperimentDeviation (%)
Mean XY Tracking Error (m)0.780.825.1
Settling Time (s)3.03.26.7
Yaw Steady–State Error (rad)0.0180.02116.7
Maximum Overshoot (%)10.211.411.8
Table 10. Statistical robustness of UAV tracking and attitude control ( N = 5 trials).
Table 10. Statistical robustness of UAV tracking and attitude control ( N = 5 trials).
MetricMeanSD95% CI
Mean XY Tracking Error (m)0.820.07[0.77, 0.87]
Altitude Deviation (m)0.430.05[0.40, 0.46]
Yaw Steady–State Error (deg)1.30.2[1.1, 1.5]
Pitch RMS Error (deg)2.10.3[1.8, 2.4]
Roll RMS Error (deg)1.80.2[1.6, 2.0]
Table 11. Contextual comparison with representative UAV tracking studies (values taken from literature).
Table 11. Contextual comparison with representative UAV tracking studies (values taken from literature).
Controller TypeMean Error (m)Settling Time (s)Overshoot (%)Reference
PID (Leader–Follower)0.954.118[22]
NMPC0.722.810[11]
2–DOF PID0.813.012[34]
MPC0.682.78[37]
PID + Delay Compensation0.823.211This work
Table 12. Recommended system enhancements.
Table 12. Recommended system enhancements.
ComponentEnhancement
CommunicationImplement 5G reduced-latency mode (target < 5 ms)
Control SystemAdaptive PID with gain scheduling for dynamic flight regimes
SensorsMulti-sensor fusion with RTK-GPS and visual–inertial odometry
Power SystemActive battery balancing for consistent thrust and endurance
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Aly, M.; Ali, B.; Mekonnen, F.Y.; Elhesasy, M.; Wang, M.; Kamra, M.M.; Dief, T.N. Real-Flight-Path Tracking Control Design for Quadrotor UAVs: A Precision-Guided Approach. Automation 2025, 6, 93. https://doi.org/10.3390/automation6040093

AMA Style

Aly M, Ali B, Mekonnen FY, Elhesasy M, Wang M, Kamra MM, Dief TN. Real-Flight-Path Tracking Control Design for Quadrotor UAVs: A Precision-Guided Approach. Automation. 2025; 6(4):93. https://doi.org/10.3390/automation6040093

Chicago/Turabian Style

Aly, Moataz, Badar Ali, Fitsum Y. Mekonnen, Mohamed Elhesasy, Mingkai Wang, Mohamed M. Kamra, and Tarek N. Dief. 2025. "Real-Flight-Path Tracking Control Design for Quadrotor UAVs: A Precision-Guided Approach" Automation 6, no. 4: 93. https://doi.org/10.3390/automation6040093

APA Style

Aly, M., Ali, B., Mekonnen, F. Y., Elhesasy, M., Wang, M., Kamra, M. M., & Dief, T. N. (2025). Real-Flight-Path Tracking Control Design for Quadrotor UAVs: A Precision-Guided Approach. Automation, 6(4), 93. https://doi.org/10.3390/automation6040093

Article Metrics

Back to TopTop