Adaptive PID Control via Sliding Mode for Position Tracking of Quadrotor MAV: Simulation and Real-Time Experiment Evaluation
Abstract
:1. Introduction
2. MAV Quadrotor Modeling
3. Flight Controller Design
3.1. Fully Actuated System
3.1.1. Attitude and Yaw Controller
3.1.2. Altitude Control Design
3.2. Underactuated System
3.3. PID Controller Design
- APIDC system element preparation.
- Implementation of error tracking as in (17).
- Sliding surface, s, as described in (22).
- Application of the PID controller, upid, as revealed in (31).
- Manipulating the gains elements, , , and as reviewed in (34).
4. Results
4.1. Simulation Results
4.1.1. Waypoint Follower
4.1.2. Orbit Follower
4.2. Experimental Results
- Design of flight control: For this part, the control algorithms that will be implemented on the drone are designed using control theory principles to ensure the drone’s stability and safety while performing the desired flight maneuvers.
- Simulation: The flight control algorithms are tested in a MATLAB SIMULINK environment to identify potential issues and optimize the algorithms before deploying them on the actual Parrot Mambo Minidrone.
- Embedded Code Generation: After the flight control algorithms are validated in the simulation environment, the code that will be embedded into the drone’s flight control system is generated by MATLAB.
- Compilation, Built, and Upload: The generated code is compiled and built into the final firmware, which is uploaded wirelessly via Bluetooth onto the drone’s flight control system.
- Data Analysis: Once the drone is flying, data is collected from onboard sensors to ensure it behaves as expected. The data is downloaded from the internal storage of the drone’s flight control system and analyzed to identify potential issues and refine the control algorithms for improvement.
- Redesign: The control algorithms will be modified based on the data analysis to achieve desired performance. The design, simulation, and testing cycle is repeated to ensure the drone is safe, stable, and performs the desired flight maneuvers.
- Testing is performed in an air-conditioned hall.
- Parrot Mambo Minidrone form is presumed to be in a decent state.
- Propellers are assumed to also be in decent state, devoid of any dents.
- Motors are presumed to be in a decent state.
- Execution starting point remains the same.
- Lighting state is deemed to be in the range of fair to good.
- Wind gusts are arbitrarily produced.
Dimension | PID | APID | |
---|---|---|---|
Waypoint | X | 2.9155 | 2.1500 |
Y | 4.1389 | 2.2719 | |
Orbit | X | 0.7560 | 0.7061 |
Y | 0.8278 | 0.6142 |
4.2.1. Waypoint Follower
4.2.2. Orbit Follower
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Roy, R.; Islam, M.; Sadman, N.; Mahmud, M.A.P.; Gupta, K.D.; Ahsan, M.M. A Review on Comparative Remarks, Performance Evaluation and Improvement Strategies of Quadrotor Controllers. Technologies 2021, 9, 37. [Google Scholar] [CrossRef]
- Rinaldi, M.; Primatesta, S.; Guglieri, G. A Comparative Study for Control of Quadrotor UAVs. Appl. Sci. 2023, 13, 3464. [Google Scholar] [CrossRef]
- MathWorks Parrot Minidrones Support from Simulink. Available online: https://www.mathworks.com/hardware-support/parrot-minidrones.html (accessed on 10 July 2019).
- Glazkov, T.V.; Golubev, A.E. Using Simulink Support Package for Parrot Minidrones in Nonlinear Control Education. AIP Conf. Proc. 2019, 2195, 020007. [Google Scholar] [CrossRef]
- Koszewnik, A. The Parrot UAV Controlled by PID Controllers. Acta Mech. Autom. 2014, 8, 65–69. [Google Scholar] [CrossRef]
- Noordin, A.; Basri, M.A.M.; Mohamed, Z. Simulation and Experimental Study on Pid Control of a Quadrotor MAV with Perturbation. Bull. Electr. Eng. Inform. 2020, 9, 1811–1818. [Google Scholar] [CrossRef]
- Everett, M.F. LQR with Integral Feedback on a Parrot Mini-Drone. Massachusetts Institute of Technology, Tech. Rep. 2015. Available online: http://mfe.scripts.mit.edu/portfolio/img/portfolio/16.31/16.31longreport.pdf (accessed on 9 March 2023).
- Ashis, C.K.; Rahul Sharma, K. Dynamic Modeling and Altitude Control of Parrot Rolling Spider Using LQR. In Proceedings of the 2019 2nd International Conference on Intelligent Computing, Instrumentation and Control Technologies (ICICICT), Kannur, India, 5–6 July 2019; pp. 1377–1381. [Google Scholar] [CrossRef]
- Okasha, M.; Kralev, J.; Islam, M. Design and Experimental Comparison of PID, LQR and MPC Stabilizing Controllers for Parrot Mambo Mini-Drone. Aerospace 2022, 9, 298. [Google Scholar] [CrossRef]
- Indrawati, V.; Prayitno, A.; Kusuma, T.A. Waypoint Navigation of AR. Drone Quadrotor Using Fuzzy Logic Controller. TELKOMNIKA (Telecommun. Comput. Electron. Control) 2015, 13, 930–939. [Google Scholar] [CrossRef]
- Kaplan, M.R.; Eraslan, A.; Beke, A.; Kumbasar, T. Altitude and Position Control of Parrot Mambo Minidrone with PID and Fuzzy PID Controllers. In Proceedings of the 2019 11th International Conference on Electrical and Electronics Engineering (ELECO), Bursa, Turkey, 28–30 November 2019; pp. 785–789. [Google Scholar] [CrossRef]
- Delansnay, G.; Wouwer, A. Vande Implementation and Tests of an INDI Control Strategy Applied to the Parrot Mambo Minidrone. In Proceedings of the 2022 International Conference on Unmanned Aircraft Systems, ICUAS 2022, Dubrovnik, Croatia, 21–24 June 2022; Institute of Electrical and Electronics Engineers Inc.: Piscataway, NJ, USA, 2022; pp. 745–752. [Google Scholar]
- Scola, I.R.; Reyes, G.A.G.; Carrillo, L.R.G.; Hespanha, J.P.; Burlion, L. A Robust Control Strategy with Perturbation Estimation for the Parrot Mambo Platform. IEEE Trans. Control Syst. Technol. 2021, 29, 1389–1404. [Google Scholar] [CrossRef]
- Liu, K.; Wang, Y.; Ji, H.; Wang, S. Adaptive Saturated Tracking Control for Spacecraft Proximity Operations via Integral Terminal Sliding Mode Technique. Int. J. Robust Nonlinear Control 2021, 31, 9372–9396. [Google Scholar] [CrossRef]
- Liu, K.; Wang, R. Antisaturation Adaptive Fixed-Time Sliding Mode Controller Design to Achieve Faster Convergence Rate and Its Application. IEEE Trans. Circuits Syst. II Express Briefs 2022, 69, 3555–3559. [Google Scholar] [CrossRef]
- Alqaisi, W.; Brahmi, B.; Ghommam, J.; Saad, M.; Nerguizian, V. Sliding Mode Controller and Hierarchical Perturbation Compensator in a UAV Quadrotor. In Proceedings of the 2018 IEEE International Conference on Computational Intelligence and Virtual Environments for Measurement Systems and Applications (CIVEMSA), Ottawa, ON, Canada, 12–13 June 2018; pp. 2–7. [Google Scholar] [CrossRef]
- Alqaisi, W.; Ghommam, J.; Alazzam, A.; Saad, M.; Nerguizian, V. Three-Loop Uncertainties Compensator and Sliding Mode Quadrotor Control. Comput. Electr. Eng. 2020, 81, 106507. [Google Scholar] [CrossRef]
- Kali, Y.; Rodas, J.; Saad, M.; Gregor, R.; Alqaisi, W.; Benjelloun, K. Robust Finite-Time Position and Attitude Tracking of a Quadrotor UAV Using Super-Twisting Control Algorithm with Linear Correction Terms. In Proceedings of the 16th International Conference on Informatics in Control, Automation and Robotics: ICINCO 2019, Prague, Czech Republic, 29–31 July 2019; Volume 2, pp. 221–228. [Google Scholar] [CrossRef]
- Alqaisi, W.; Kali, Y.; Ghommam, J.; Saad, M.; Nerguizian, V. Position and Attitude Tracking of Uncertain Quadrotor Unmanned Aerial Vehicles Based on Non-Singular Terminal Super-Twisting Algorithm. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2020, 234, 396–408. [Google Scholar] [CrossRef]
- Castañeda, H.; Gordillo, J.L. Embedded Flight Control Based on Adaptive Sliding Mode Strategy for a Quadrotor Micro Air Vehicle. Electronics 2019, 8, 793. [Google Scholar] [CrossRef]
- Castañeda, H.; Gordillo, J.L. Spatial Modeling and Robust Flight Control Based on Adaptive Sliding Mode Approach for a Quadrotor MAV. J. Intell. Robot. Syst. Theory Appl. 2019, 93, 101–111. [Google Scholar] [CrossRef]
- Alqaisi, W.K.; Brahmi, B.; Ghommam, J.; Saad, M.; Nerguizian, V. Adaptive Sliding Mode Control Based on RBF Neural Network Approximation for Quadrotor. In Proceedings of the 2019 IEEE International Symposium on Robotic and Sensors Environments (ROSE), Ottawa, ON, Canada, 17–18 June 2019; p. 6. [Google Scholar] [CrossRef]
- Hsu, C.F.; Lee, B.K. FPGA-Based Adaptive PID Control of a DC Motor Driver via Sliding-Mode Approach. Expert Syst. Appl. 2011, 38, 11866–11872. [Google Scholar] [CrossRef]
- Noordin, A.; Mohd Basri, M.A.; Mohamed, Z.; Mat Lazim, I. Adaptive PID Controller Using Sliding Mode Control Approaches for Quadrotor UAV Attitude and Position Stabilization. Arab. J. Sci. Eng. 2021, 46, 963–981. [Google Scholar] [CrossRef]
- Noordin, A.; Ariffanan, M.; Basri, M.; Mohamed, Z. Real-Time Implementation of an Adaptive PID Controller for the Quadrotor MAV Embedded Flight Control System. Aerospace 2023, 10, 59. [Google Scholar] [CrossRef]
- Noordin, A.; Mohd Basri, M.A.; Mohamed, Z. Position and Attitude Tracking of MAV Quadrotor Using SMC-Based Adaptive PID Controller. Drones 2022, 6, 263. [Google Scholar] [CrossRef]
- Perozzi, G.; Efimov, D.; Biannic, J.; Planckaert, L.; Coton, P. Wind Rejection via Quasi-Continuous Sliding Mode Technique to Control Safely a Mini Drone. In Proceedings of the 7th European Conference for Aeronautics and Space Sciences: EUCASS 2017, Milan, Italy, 3–6 July 2017. [Google Scholar] [CrossRef]
- Lazim, I.M.; Husain, A.R.; Ariffanan, M.; Basri, M.; Mohd, N.A. Feedback Linearization with Intelligent Disturbance Observer for Autonomous Quadrotor with Time-Varying Disturbance. Int. J. Mech. Mechatron. Eng. 2018, 18, 47–55. [Google Scholar]
- Zhang, Q.; Wei, Y.; Li, X. Quadrotor Attitude Control by Fractional-Order Fuzzy Particle Swarm Optimization-Based Active Disturbance Rejection Control. Appl. Sci. 2021, 11, 1583. [Google Scholar] [CrossRef]
- Liu, K.; Wang, R.; Wang, X.; Wang, X. Anti-Saturation Adaptive Finite-Time Neural Network Based Fault-Tolerant Tracking Control for a Quadrotor UAV with External Disturbances. Aerosp. Sci. Technol. 2021, 115, 106790. [Google Scholar] [CrossRef]
Specification | Parameter | Unit | Value |
---|---|---|---|
Quadrotor mass | |||
Lateral moment arm | |||
Thrust coefficient | |||
Drag coefficient | |||
Rolling moment of inertia | |||
Pitching moment of inertia | |||
Yawing moment of inertia | |||
Rotor moment of inertia |
Dimension | |||
---|---|---|---|
P-PI | 0.7 | 0.7 | |
0.2 | 0.2 | ||
0.1 | 0.1 | ||
APID | 0.1 | 0.1 | |
0.01 | 0.02 | ||
0.2 | 0.2 | ||
0.7 | 0.8 | ||
2 | 3 |
Dimension | PID | APID | |
---|---|---|---|
Waypoint | 1.9852 | 1.5537 | |
2.0254 | 1.4851 | ||
Waypoint (Wind Gust) | 4.8746 | 2.9054 | |
3.0930 | 2.2544 |
Dimension | PID | APID | |
---|---|---|---|
Orbit | 0.8348 | 0.7885 | |
0.7841 | 0.7257 | ||
Orbit (Wind Gust) | 0.8774 | 0.8575 | |
0.9577 | 0.9079 |
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. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Noordin, A.; Mohd Basri, M.A.; Mohamed, Z. Adaptive PID Control via Sliding Mode for Position Tracking of Quadrotor MAV: Simulation and Real-Time Experiment Evaluation. Aerospace 2023, 10, 512. https://doi.org/10.3390/aerospace10060512
Noordin A, Mohd Basri MA, Mohamed Z. Adaptive PID Control via Sliding Mode for Position Tracking of Quadrotor MAV: Simulation and Real-Time Experiment Evaluation. Aerospace. 2023; 10(6):512. https://doi.org/10.3390/aerospace10060512
Chicago/Turabian StyleNoordin, Aminurrashid, Mohd Ariffanan Mohd Basri, and Zaharuddin Mohamed. 2023. "Adaptive PID Control via Sliding Mode for Position Tracking of Quadrotor MAV: Simulation and Real-Time Experiment Evaluation" Aerospace 10, no. 6: 512. https://doi.org/10.3390/aerospace10060512
APA StyleNoordin, A., Mohd Basri, M. A., & Mohamed, Z. (2023). Adaptive PID Control via Sliding Mode for Position Tracking of Quadrotor MAV: Simulation and Real-Time Experiment Evaluation. Aerospace, 10(6), 512. https://doi.org/10.3390/aerospace10060512