[Paper Review] Design of a Trajectory Tracking Controller for a Nanoquadcopter
This paper proposes a Linear-Quadratic Tracker (LQT) controller for trajectory tracking on a nanoquadcopter using the Crazyflie 2.0 platform, comparing it to a cascaded PID controller. The LQT controller reduces RMS position tracking errors by up to four times compared to PID by precomputing optimal control inputs using trajectory knowledge, though it incurs higher control effort and requires offline trajectory planning.
The primary purpose of this study is to investigate the system modeling of a nanoquadcopter as well as designing position and trajectory control algorithms, with the ultimate goal of testing the system both in simulation and on a real platform. The open source nanoquadcopter platform named Crazyflie 2.0 was chosen for the project. The first phase consisted in the development of a mathematical model that describes the dynamics of the quadcopter. Secondly, a simulation environment was created to design two different control architectures: cascaded PID position tracker and LQT trajectory tracker. Finally, the implementation phase consisted in testing the controllers on the chosen platform and comparing their performance in trajectory tracking. Our simulations agreed with the experimental results, and further refinement of the model is proposed as future work through closed-loop model identification techniques. The results show that the LQT controller performed better at tracking trajectories, with RMS errors in position up to four times smaller than those obtained with the PID. LQT control effort was greater, but eliminated the high control peaks that induced motor saturation in the PID controller. The LQT controller was also tested using an ultra-wide band two-way ranging system, and comparisons with the more precise VICON system indicate that the controller could track a trajectory in both cases despise the difference in noise levels between the two systems.
Motivation & Objective
- To develop a precise mathematical model of the nanoquadcopter's dynamics for control system design.
- To design and simulate two control architectures: cascaded PID and Linear-Quadratic Tracker (LQT) for trajectory tracking.
- To implement and experimentally validate both controllers on the Crazyflie 2.0 platform using VICON and UWB positioning systems.
- To compare controller performance in simulation and real-world testing under varying noise conditions.
- To identify limitations of current controllers and propose future improvements, including yaw control and online trajectory adaptation.
Proposed method
- Developed a nonlinear dynamic model of the quadcopter using Newton-Euler equations in body-fixed and inertial frames.
- Linearized the system dynamics around hover and represented it in state-space form for control design.
- Implemented a cascaded PID controller with inner rate and outer position loops, including a control mixer for motor commands.
- Designed an LQT controller by formulating an optimal control problem with quadratic cost functions, integrating trajectory information and Kalman filtering for velocity estimation.
- Used a Kalman filter to estimate linear velocities from noisy position measurements obtained via VICON and UWB systems.
- Created a GUI for generating complex 3D trajectories and validated controllers in simulation and real-time experiments on the Crazyflie 2.0.
Experimental results
Research questions
- RQ1How does the performance of an LQT controller compare to a cascaded PID controller in terms of trajectory tracking accuracy on a nanoquadcopter?
- RQ2To what extent does the LQT controller reduce RMS position errors compared to PID, especially in complex trajectories?
- RQ3Can the LQT controller maintain stable and accurate tracking when using low-precision UWB positioning data instead of high-accuracy VICON?
- RQ4What are the trade-offs in control effort and motor saturation between the PID and LQT controllers?
- RQ5What are the key limitations of the LQT controller, and how can they be addressed through future improvements such as yaw control and online trajectory generation?
Key findings
- The LQT controller reduced RMS position tracking errors by up to four times compared to the PID controller, particularly in complex trajectories like circles and helices.
- The LQT controller eliminated high control peaks that caused motor saturation in the PID controller, despite requiring higher overall control effort.
- The LQT controller successfully tracked trajectories using both VICON and UWB positioning systems, demonstrating robustness to noise differences between the two.
- The Kalman filter effectively estimated linear velocities from noisy UWB and VICON data, enabling accurate LQT performance even with 100× higher noise in UWB.
- Simulation results closely matched experimental outcomes, validating the simulation environment as a reliable design tool for controller development.
- The LQT controller exhibited predictive behavior by initiating motion before the command was issued, due to offline trajectory optimization.
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.