Skip to main content

Design and Implementation of a Robust 6-DOF Quadrotor Controller Based on Kalman Filter for Position Control

  • Chapter
  • First Online:
Mobile Robot: Motion Control and Path Planning

Abstract

The objective of this chapter is to develop quadcopter flight control algorithms using a PID controller enhanced by a Kalman Filter (KF) using an experimental approach to extract the physical and aerodynamic settings of the quadcopter. It is first necessary to present the current state of the quadcopter analytical dynamics model in order to achieve an effective design. A second step involves the development of the quadcopter’s hardware and software, as well as the development of a full thrust test rig to extract the parameters of the propulsion system and the linearisation approximations between the different variables. Using the quadcopter’s 6-DOF analytical dynamic model, the controller’s control parameters are determined using a PID design enhanced with KF. Test results were assessed using dynamic response curves and 3D Matlab visualisations. In order to evaluate the performance of the PID controllers, we measured the time response, overshoot, and settling time with and without the KF. After the SIMULINK model’s results for the drone were accepted, a C++ code was produced. Uploading the generated code into the Pixhawk autopilot was accomplished through a Simulink application in the autopilot firmware. Based on the Pixhawk autopilot, we present a quick and real-time test solution for drone controllers. Further enhancements are provided by near-real-time tuning of the control settings. This research uses the Embedded Coder Tool to develop SIMULINK-generated code for the Pixhawk autopilot board.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Aboelhassan A, Abdelgeliel M, Zakzouk EE, Galea M (2020) Design and implementation of model predictive control based PID controller for industrial applications. Energies 13(24):6594

    Article  Google Scholar 

  2. Ajel AR, Humaidi AJ, Ibraheem IK, Azar AT (2021) Robust model reference adaptive control for tail-sitter VTOL aircraft. Actuators 10(7):1–19. https://doi.org/10.3390/act10070162

    Article  Google Scholar 

  3. Al-Qassar A, Abdulkareem A, Hasan A, Humaidi A, Ibraheem I, Azar A, Hameed A (2021) Grey-wolf optimization better enhances the dynamic performance of roll motion for tail-sitter VTOL aircraft guided and controlled by STSMC. J Eng Sci Technol 16(3):1932–1950

    Google Scholar 

  4. Alkhafaji FS, Hasan WW, Isa M, Sulaiman N (2018) A novel method for tuning PID controller. J Telecommun Electron Comput Eng (JTEC) 10(1–12):33–38

    Google Scholar 

  5. Ammar HH, Azar AT (2020) Robust path tracking of mobile robot using fractional order PID controller. In: The international conference on advanced machine learning technologies and applications (AMLTA2019). Advances in intelligent systems and computing, vol 921. Springer International Publishing, Cham, pp 370–381

    Google Scholar 

  6. Ammar HH, Azar AT, Tembi TD, Tony K, Sosa A (2018) Design and implementation of fuzzy PID controller into multi agent smart library system prototype. In: The international conference on advanced machine learning technologies and applications (AMLTA2018). Advances in intelligent systems and computing, vol 723. Springer International Publishing, Cham, pp 127–137

    Google Scholar 

  7. Azar AT, Serrano FE, Kamal NA, Koubaa A (2020) Robust kinematic control of unmanned aerial vehicles with non-holonomic constraints. In: International conference on advanced intelligent systems and informatics. Springer, pp 839–850

    Google Scholar 

  8. Azar AT, Serrano FE, Koubaa A, Kamal NA (2020) Backstepping h-infinity control of unmanned aerial vehicles with time varying disturbances. In: 2020 first international conference of smart systems and emerging technologies (SMARTTECH). IEEE, pp 243–248

    Google Scholar 

  9. Azar AT, Koubaa A, Ali Mohamed N, Ibrahim HA, Ibrahim ZF, Kazim M, Ammar A, Benjdira B, Khamis AM, Hameed IA et al (2021) Drone deep reinforcement learning: a review. Electronics 10(9):999

    Article  Google Scholar 

  10. Azar AT, Serrano FE, Kamal NA, Koubaa A, Ammar A (2021) Dynamic integral PID sliding mode attitude-position control of unmanned aerial vehicles. In: Advanced machine learning technologies and applications. Springer International Publishing, Cham, pp 651–661

    Google Scholar 

  11. Borase RP, Maghade D, Sondkar S, Pawar S (2021) A review of PID control, tuning methods and applications. Int J Dyn Control 9(2):818–827

    Article  MathSciNet  Google Scholar 

  12. Bulut N (2019) Modeling, simulation, and control of a quadrotor having a 2-DOF robotic arm. Master’s thesis, Middle East Technical University

    Google Scholar 

  13. Cano AEJ (2019) Modelling and control of aerial manipulators. PhD thesis, Universidad de Sevilla

    Google Scholar 

  14. Cols Margenet M, Schaub H, Piggott S (2021) Flight software development, migration, and testing in desktop and embedded environments. J Aerosp Inf Syst 18(4):157–174

    Google Scholar 

  15. DeGarmo MT (2004) Issues concerning integration of unmanned aerial vehicles in civil airspace. Center for Advanced Aviation System Development, 4

    Google Scholar 

  16. Erenturk K, Erenturk S (2022) Enhanced fractional-order pi\(\lambda \)d\(\mu \) control for a forced circulation evaporator system via advanced disturbance observer. ISA Trans

    Google Scholar 

  17. Fadel MZ, Rabie MG, Youssef AM (2019) Modeling, simulation and control of a fly-by-wire flight control system using classical PID and modified PI-D controllers. J Eur Syst Autom 52(3):267–276

    Google Scholar 

  18. Fareha A, Bousbaine A, Josaph AK (2018) Experimental characterisation of quad rotor controller based on Kalman filter. In: 2018 53rd international universities power engineering conference (UPEC). IEEE, pp 1–6

    Google Scholar 

  19. Fareha A, Bousbaine A, Josaph AK (2020) A hardware implementation of 6dof quadcopter Matlab/Simulink controller algorithm to an autopilot. In: The 10th international conference on power electronics, machines and drives (PEMD 2020), vol 2020, pp 485–490. https://doi.org/10.1049/icp.2021.1078

  20. Fekik A, Denoun H, Azar AT, Koubaa A, Kamal NA, Zaouia M, Hamida ML, Yassa N (2020) Adapted fuzzy fractional order proportional-integral controller for dc motor. In: 2020 first international conference of smart systems and emerging technologies (SMARTTECH), pp 1–6. https://doi.org/10.1109/SMART-TECH49988.2020.00019

  21. Femi R, Sree Renga Raja T, Shenbagalakshmi R (2022) Performance comparison of optimization algorithm tuned PID controllers in positive output re-lift Luo converter operation for electric vehicle applications. IETE J Res 1–19

    Google Scholar 

  22. Filo M, Kumar S, Khammash M (2022) A hierarchy of biomolecular proportional-integral-derivative feedback controllers for robust perfect adaptation and dynamic performance. Nat Commun 13(1):1–19

    Article  Google Scholar 

  23. Gorripotu TS, Samalla H, Jagan Mohana Rao C, Azar AT, Pelusi D (2019) TLBO algorithm optimized fractional-order PID controller for AGC of interconnected power system. In: Nayak J, Abraham A, Krishna BM, Chandra Sekhar GT, Das AK (eds) Soft computing in data analytics. Springer, Singapore, pp 847–855

    Chapter  Google Scholar 

  24. Gundlach J, Gundlach J (2012) Designing unmanned aircraft systems: a comprehensive approach, vol 34. American Institute of Aeronautics and Astronautics Reston

    Google Scholar 

  25. Guo K, Ye Z, Liu D, Peng X (2021) UAV flight control sensing enhancement with a data-driven adaptive fusion model. Reliab Eng Syst Saf 213(107):654

    Google Scholar 

  26. Hanani N, Syazwanadira F, Fakharulrazi NA, Yakub F, Rasid ZA, Sarip S (2019) Full control of quadrotor unmanned aerial vehicle using multivariable proportional integral derivative controller. In: 2019 IEEE 9th international conference on system engineering and technology (ICSET). IEEE, pp 447–452

    Google Scholar 

  27. Humaidi AJ, Najem HT, Al-Dujaili AQ, Pereira DA, Ibraheem IK, Azar AT (2021) Social spider optimization algorithm for tuning parameters in PD-like interval type-2 fuzzy logic controller applied to a parallel robot. Meas Control 54(3–4):303–323

    Article  Google Scholar 

  28. Ibraheem GAR, Azar AT, Ibraheem IK, Humaidi AJ (2020) A novel design of a neural network-based fractional PID controller for mobile robots using hybridized fruit fly and particle swarm optimization. Complexity 2020:1–18

    Article  Google Scholar 

  29. Kazim M, Azar AT, Koubaa A, Zaidi A (2021) Disturbance-rejection-based optimized robust adaptive controllers for UAVs. IEEE Syst J 15(2):3097–3108. https://doi.org/10.1109/JSYST.2020.3006059

    Article  Google Scholar 

  30. Kumar J, Azar AT, Kumar V, Rana KPS (2018) Design of fractional order fuzzy sliding mode controller for nonlinear complex systems. In: Mathematical techniques of fractional order systems. Advances in nonlinear dynamics and chaos (ANDC). Elsevier, pp 249–282

    Google Scholar 

  31. Lewis FL, Dawson DM, Abdallah CT (2003) Robot manipulator control: theory and practice. CRC Press

    Google Scholar 

  32. Liang S, Xu B, Ren J (2021) Kalman-filter-based robust control for hypersonic flight vehicle with measurement noises. Aerosp Sci Technol 112(106):566

    Google Scholar 

  33. López LFdM, García FS, Naranjo Hernández JE, Blas NG (2021) Speed proportional integrative derivative controller: optimization functions in metaheuristic algorithms. J Adv Transp 2021

    Google Scholar 

  34. Lu F, Gao T, Huang J, Qiu X (2019) A novel distributed extended Kalman filter for aircraft engine gas-path health estimation with sensor fusion uncertainty. Aerosp Sci Technol 84:90–106

    Article  Google Scholar 

  35. Luo Y, Awal M, Yu W, Husain I (2021) FPGA implementation for rapid prototyping of high performance voltage source inverters. CPSS Trans Power Electron Appl 6(4):320–331

    Article  Google Scholar 

  36. Najm AA, Ibraheem IK, Azar AT, Humaidi AJ (2020) Genetic optimization-based consensus control of multi-agent 6-DOF UAV system. Sensors 20(12):3576

    Article  Google Scholar 

  37. Najm AA, Azar AT, Ibraheem IK, Humaidi AJ (2021) A nonlinear PID controller design for 6-DOF unmanned aerial vehicles. In: Koubaa A, Azar AT (eds) Unmanned aerial systems. Advances in nonlinear dynamics and chaos (ANDC). Academic Press, pp 315–343

    Google Scholar 

  38. Palaniyappan T, Yadav V, Tayal VK, Choudekar P et al (2018) PID control design for a temperature control system. In: 2018 international conference on power energy, environment and intelligent control (PEEIC). IEEE, pp 632–637

    Google Scholar 

  39. Pilla R, Azar AT, Gorripotu TS (2019) Impact of flexible AC transmission system devices on automatic generation control with a metaheuristic based fuzzy PID controller. Energies 12(21):4193

    Article  Google Scholar 

  40. Pilla R, Botcha N, Gorripotu TS, Azar AT (2020) Fuzzy PID controller for automatic generation control of interconnected power system tuned by glow-worm swarm optimization. In: Nayak J, Balas VE, Favorskaya MN, Choudhury BB, Rao SKM, Naik B (eds) Applications of robotics in industry using advanced mechanisms. Springer International Publishing, Cham, pp 140–149

    Chapter  Google Scholar 

  41. Pilla R, Gorripotu TS, Azar AT (2021) Design and analysis of search group algorithm-based PD-PID controller plus redox flow battery for automatic generation control problem. Int J Comput Appl Technol 66(1):19–35

    Article  Google Scholar 

  42. Pilla R, Gorripotu TS, Azar AT (2021) Tuning of extended Kalman filter using grey wolf optimisation for speed control of permanent magnet synchronous motor drive. Int J Autom Control 15(4–5):563–584

    Article  Google Scholar 

  43. Rana K, Kumar V, Sehgal N, George S, Azar AT (2021) Efficient maximum power point tracking in fuel cell using the fractional-order PID controller. In: Azar AT, Kamal NA (eds) Renewable energy systems. Advances in nonlinear dynamics and chaos (ANDC). Academic Press, pp 111–132

    Google Scholar 

  44. Saidi SM, Mellah R, Fekik A, Azar AT (2022) Real-time fuzzy-PID for mobile robot control and vision-based obstacle avoidance. Int J Ser Sci Manag Eng Technol 13(1):1–32

    Google Scholar 

  45. Sallam OK, Azar AT, Guaily A, Ammar HH (2020) Tuning of PID controller using particle swarm optimization for cross flow heat exchanger based on CFD system identification. In: Proceedings of the international conference on advanced intelligent systems and informatics 2019. Advances in intelligent systems and computing, vol 1058. Springer International Publishing, Cham, pp 300–312

    Google Scholar 

  46. Samanta S, Mukherjee A, Ashour AS, Dey N, Tavares JMRS, Abdessalem Karâa WB, Taiar R, Azar AT, Hassanien AE (2018) Log transform based optimal image enhancement using firefly algorithm for autonomous mini unmanned aerial vehicle: an application of aerial photography. Int J Image Graph 18(04):1850019

    Article  Google Scholar 

  47. Soliman M, Azar AT, Saleh MA, Ammar HH (2020) Path planning control for 3-omni fighting robot using PID and fuzzy logic controller. In: The international conference on advanced machine learning technologies and applications (AMLTA2019). Springer International Publishing, Cham, pp 442–452

    Google Scholar 

  48. Suarez A, Heredia G, Ollero A (2018) Design of an anthropomorphic, compliant, and lightweight dual arm for aerial manipulation. IEEE Access 6:29,173–29,189

    Google Scholar 

  49. Suid M, Ahmad M (2021) Optimal tuning of sigmoid PID controller using nonlinear sine cosine algorithm for the automatic voltage regulator system. ISA Trans

    Google Scholar 

  50. Takahashi MD, Fujizawa BT, Lusardi JA, Goerzen CL, Cleary MJ, Carr JP IV, Waldman DW (2022) Comparison of autonomous flight control performance between partial-and full-authority helicopters. J Guid Control Dyn 45(5):885–901

    Article  Google Scholar 

  51. Veyna U, Garcia-Nieto S, Simarro R, Salcedo JV (2021) Quadcopters testing platform for educational environments. Sensors 21(12):4134

    Article  Google Scholar 

  52. Wæringsaasen S (2021) Tethered quadcopter control, simulation and modeling platform for a small USV. Master’s thesis, UiT Norges arktiske universitet

    Google Scholar 

  53. Wu Y, Hu K, Sun XM (2018) Modeling and control design for quadrotors: a controlled Hamiltonian systems approach. IEEE Trans Veh Technol 67(12):11,365–11,376

    Google Scholar 

  54. Yasin JN, Mohamed SA, Haghbayan MH, Heikkonen J, Tenhunen H, Plosila J (2020) Unmanned aerial vehicles (UAVs): collision avoidance systems and approaches. IEEE Access 8:105,139–105,155

    Google Scholar 

  55. Zhang Q, Xu Y, Wang X, Yu Z, Deng T (2021) Real-time wind field estimation and pitot tube calibration using an extended Kalman filter. Mathematics 9(6):646. https://doi.org/10.3390/math9060646. https://www.mdpi.com/2227-7390/9/6/646

  56. Zhang Y, Liu L, Peng Y, Liu D (2018) An electro-mechanical actuator motor voltage estimation method with a feature-aided Kalman filter. Sensors 18(12):4190

    Article  Google Scholar 

  57. Zolanvari M, Jain R, Salman T (2020) Potential data link candidates for civilian unmanned aircraft systems: a survey. IEEE Commun Surv Tutor 22(1):292–319

    Article  Google Scholar 

Download references

Acknowledgements

The authors would like to thank Prince Sultan University, Riyadh, Saudi Arabia for supporting this work. Special acknowledgement to Automated Systems and Soft Computing Lab (ASSCL), Prince Sultan University, Riyadh, Saudi Arabia.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Arezki Fekik .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Bousbaine, A. et al. (2023). Design and Implementation of a Robust 6-DOF Quadrotor Controller Based on Kalman Filter for Position Control. In: Azar, A.T., Kasim Ibraheem, I., Jaleel Humaidi, A. (eds) Mobile Robot: Motion Control and Path Planning. Studies in Computational Intelligence, vol 1090. Springer, Cham. https://doi.org/10.1007/978-3-031-26564-8_11

Download citation

Publish with us

Policies and ethics