This article proposes an enhancement to estimate unmodeled dynamics within the simplified dynamic model of a quadcopter by integrating three key methodologies: Nonlinear Model Predictive Control (NMPC), a Momentum Observer Dynamics (MOD), and an adaptive control law. Termed as Adaptive NMPC with MOD, this integrated approach leverages NMPC, implemented using the CasADi framework, for real-time decision-making, while the momentum observer facilitates system state estimation and uncertainty mitigation. Simultaneously, the adaptive control law adjusts parameters to estimate errors in unmodeled dynamics. Through digital twin and Model in Loop (MiL) simulations, the effectiveness of this framework is demonstrated. Specifically, the study focuses on the simplified quadcopter model, acknowledging often overlooked inherent dynamics resulting from the simplification by not considering the nonlinearities induced by the drone's attitude angles. Addressing these unmodeled dynamics is critical, and the Adaptive NMPC with MOD method emerges as a robust solution, showcasing its potential across various scenarios.
The photovoltaic (PV) industry is seeing a significant shift toward large-scale solar plants, where traditional inspection methods have proven to be time-consuming and costly. Currently, the predominant approach to PV inspection using unmanned aerial vehicles (UAVs) is based on the capture and detailed analysis of aerial images (photogrammetry). However, the photogrammetry approach presents limitations, such as an increased amount of useless data and potential issues related to image resolution that negatively impact the detection process during high-altitude flights. In this work, we develop a visual servoing control system with dynamic compensation using nonlinear model predictive control (NMPC) applied to a UAV. This system is capable of accurately tracking the middle of the underlying PV array at various frontal velocities and height constraints, ensuring the acquisition of detailed images during low-altitude flights. The visual servoing controller is based on extracting features using RGB-D images and employing a Kalman filter to estimate the edges of the PV arrays. Furthermore, this work demonstrates the proposal in both simulated and real-world environments using the commercial aerial vehicle (DJI Matrice 100), with the purpose of showcasing the results of the architecture