[Paper Review] Adaptive Digital PID Control of a Quadcopter with Unknown Dynamics
This paper proposes an adaptive digital PID autopilot for quadcopters with unknown dynamics by replacing PX4's standard controllers with retrospective cost adaptive control (RCAC)-based adaptive PID laws. Initialized at zero gains, the adaptive system successfully maintains stable trajectory tracking under significant changes in moment of inertia, outperforming the stock PX4 controller in off-nominal conditions with robust gain adaptation and minimal tuning.
This paper develops an adaptive autopilot for quadcopters with unknown dynamics. To do this, the PX4 autopilot architecture is modified so that the feedback and feedforward controllers are replaced by adaptive control laws based on retrospective cost adaptive control (RCAC). The present paper provides a numerical investigation of the performance of the adaptive autopilot on a quadcopter with unknown dynamics. In order to reflect the absence of prior modeling information, all of the adaptive digital controllers are initialized at zero gains. In addition, moment-of-inertia of the quadcopter is varied to test the robustness of the adaptive autopilot. In all test cases, the vehicle is commanded to follow a given trajectory, and the resulting performance is examined.
Motivation & Objective
- Address the challenge of quadcopter autopilot performance degradation when vehicle dynamics are unknown or change unexpectedly.
- Overcome limitations of fixed-gain controllers like PX4’s stock autopilot in off-nominal flight conditions due to mass or inertia changes.
- Develop an adaptive control system that requires no prior knowledge of vehicle dynamics, initializing all gains at zero.
- Demonstrate robustness and performance consistency under significant physical parameter variations, such as a fivefold increase in moment of inertia.
- Investigate the impact of RCAC hyperparameters (P₀ and σ) on closed-loop system response and controller adaptation behavior.
Proposed method
- Replace all standard P and PID controllers in the PX4 autopilot architecture with adaptive digital PID controllers based on retrospective cost adaptive control (RCAC).
- Implement RCAC using recursive least squares (RLS) to update a 4×4 matrix of controller parameters at each time step, enabling real-time adaptation.
- Initialize all adaptive controller gains at zero to reflect absence of prior modeling information.
- Integrate the adaptive autopilot with a quadcopter simulator to evaluate performance under various dynamic conditions.
- Vary the moment-of-inertia matrix by a factor of five to test robustness and observe gain adaptation dynamics.
- Systematically tune RCAC hyperparameters P₀ and σ to analyze their effect on transient response and stability.
Experimental results
Research questions
- RQ1Can an adaptive digital PID controller based on RCAC maintain stable trajectory tracking when the quadcopter’s dynamics are completely unknown at initialization?
- RQ2How do the RCAC hyperparameters P₀ and σ affect the transient response and robustness of the adaptive autopilot?
- RQ3How does the adaptive autopilot perform compared to the stock PX4 controller when the moment of inertia is increased fivefold?
- RQ4Do the adaptive controller gains evolve in a way that maintains consistent performance under off-nominal conditions?
- RQ5To what extent can the adaptive system compensate for unmodeled or changing physical parameters without re-tuning?
Key findings
- The adaptive PX4 autopilot achieved performance comparable to the stock PX4 controller under nominal conditions, despite zero initial gains.
- When the moment of inertia was scaled by a factor of five, the stock PX4 controller exhibited oscillatory yaw response, indicating degraded performance.
- In contrast, the adaptive PX4 controller maintained stable, non-oscillatory yaw response similar to the nominal case, demonstrating robustness.
- Controller gains evolved dynamically in response to the changed dynamics, with distinct adaptation patterns observed in off-nominal vs. nominal conditions.
- Smaller values of P₀ led to slower system response, while smaller σ values degraded overall performance, confirming the sensitivity of adaptation to hyperparameter tuning.
- The adaptive system successfully compensated for unknown dynamics without prior modeling, validating the effectiveness of RCAC-based adaptation in real-time flight control.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.