Next Article in Journal
Digital Forensic Research for Analyzing Drone and Mobile Device: Focusing on DJI Mavic 2 Pro
Next Article in Special Issue
Novel Twist Morphing Aileron and Winglet Design for UAS Control and Performance
Previous Article in Journal
A Large Scale Benchmark of Person Re-Identification
Previous Article in Special Issue
Ground Effect on the Thrust Performance of Staggered Rotor System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quadcopter Modeling Using a System for UAV Parameters Measurement

1
Department of Aviation Technical Studies, Faculty of Aeronautics, Technical University of Košice, Rampová, 7, 040 01 Košice, Slovakia
2
EDIS Vvd., Rampová 5, 040 01 Košice, Slovakia
*
Author to whom correspondence should be addressed.
Drones 2024, 8(7), 280; https://doi.org/10.3390/drones8070280
Submission received: 15 May 2024 / Revised: 13 June 2024 / Accepted: 18 June 2024 / Published: 22 June 2024
(This article belongs to the Special Issue Dynamics Modeling and Conceptual Design of UAVs)

Abstract

:
This article deals with quadcopter modeling using a system for the measurement of unmanned aerial vehicle (UAV) parameters. UAVs are often equipped with various measurement devices and equipment for measurement, which significantly affects their weight. The currently available technical solutions and inventions do not allow corrections to be made to the on-board control electronics settings without the need to perform a test flight, or without the need to create complex and time-consuming mathematical models of the unmanned aerial vehicle; therefore, it is desirable to create a new method for modeling the characteristics of an UAV based on static laboratory measurements. The goal of this paper is to create a dynamic model of a quadcopter that will be adapted to a system for measuring UAV parameters, specifically the thrust of individual motors, which will be the next step to creating a new method for modeling UAV characteristics. This method can be used in the future for tuning flight control algorithms, based on static laboratory measurements.

1. Introduction

Unmanned aerial vehicles (UAVs) have gradually become part of everyday life. They are widely used in various branches of industry, for example, for monitoring and mapping terrain [1,2,3,4,5] or magnetic fields (either outdoors or indoors measurement) where the cleanliness of the environment is taken into account [6,7]. In addition, they also play an important role in the field of search and rescue [8,9] and in the monitoring of public spaces [10,11]. Due to the use of UAVs in the mentioned industries, additional equipment in the form of various measurement devices [12,13,14,15,16] is often placed on board. These devices increase the weight of the UAV, which results in a change in its control dynamics. In such a case, additional time should be devoted to the thorough setting and tuning of the control algorithms of its flight controller (FC). The basic part of the FC control algorithms consists of proportional, integral, and derivative (PID) controllers, which are responsible for flight control and stabilization [17,18,19]. The tuning of these PID controllers can be done in different ways. For example, a real-time novel algorithm for PID controller tuning for quadcopters was introduced [20]. In this solution, the particle swarm optimization method is utilized to find the best PID controller parameters, as well as a fuzzy logic controller to provide proper velocity reference signals to serve as tracking set points to be achieved by the PID controller. In addition to this solution, a study was presented that was based on PID controller online tuning using a multilayer fuzzy neural network design for quadcopter attitude control [21]. Many operators carry out tuning manually based on their previous experience or calculations [22]. However, after each such adjustment, it is necessary to do a test flight with the UAV, which further increases the time required for control adjustment.
The tuning of PID controllers can also be done based on static laboratory measurements using a simple mathematical model of UAV dynamics, provided we can tell exactly what thrust each UAV motor is producing. This can be determined using a system for measuring UAV parameters, which we addressed in our previous research [23]. The essence of this system is tensometric sensors that sense the forces acting from the motors and a rod structure that is designed so that the distribution of force from individual UAV motors to all sensors is uniform. If we measure UAV parameters this way, i.e., the thrust of individual motors, we can create a simple mathematical model of UAV dynamics, whose input will be the parameters measured by the tensometric measurement system.
The novelty of this article consists in the creation of a UAV dynamics model (software solution), which will be adapted to the measurement system (hardware solution) so that the parameters from the measurement system are measured as inputs to the model, especially the thrust of the individual motors and other parameters, on the basis of which the moments of inertia in the individual axes will be recalculated. Such an adapted model for the purpose of use with a measuring system is a good prerequisite for the creation of a new tuning method of PID controllers.

2. Materials and Methods

To derive a mathematical model for the dynamics of a quadcopter, it is necessary to first define the coordinate systems necessary for the derivation of the model. The space in which the quadcopter moves can be described in the inertial coordinate system and in the coordinate system of the unmanned vehicle itself, i.e., the aircraft coordinate system, which mainly serves to describe the action of forces and moments of momentum on the quadcopter [24]. For this reason, it is necessary to describe these coordinate systems.
The inertial (terrestrial) coordinate system (shown in Figure 1 as x, y, z) is defined as a reference system in which Newton’s first law of motion applies. The inertial system is firmly connected to the earth’s surface. It can be oriented according to the cardinal points, or its longitudinal axis can be oriented relative to the flight path.
The aircraft coordinate system is tightly bound to the aircraft. Its origin is located at the center of gravity of the aircraft and the x-axis (longitudinal axis) is parallel to the longitudinal axis of the aircraft fuselage. The positive sense of the x-axis is towards the nose of the aircraft. The z-axis (vertical axis) makes a right angle with the x-axis and its positive direction points below the plane. The x- and z-axes determine the plane of symmetry of the aircraft. The y-axis (lateral axis) is perpendicular to the plane of symmetry of the aircraft and its positive direction points to the starboard side. Rotating around the x-axis causes a roll, rotating around the y-axis causes a pitch, and rotating around the z-axis causes a yaw, hence the names of the moments that cause them, where M x is the rolling moment (tilt about the x-axis), M y is the pitching moment (tilt about the y-axis), and M z is the turning moment (rotation about the z-axis).
The next step for creating a quadcopter model is the description of the action of forces, i.e., moments and thrusts, which are generated by UAV motors. Quadcopters are controlled by the angular velocities of four motors (Figure 2). Each motor produces thrust and angular momentum, the combination of which generates the main thrust and angular momentum. To achieve the desired angular momentum, it is necessary to change the angular velocity of each of the motors. Each of the motors M i   i = 1 4 creates a force F i , which is proportional to the square of the angular velocity, i.e., f i = k ω i 2   [25].
Due to the principle of operation of quadcopter motors, the produced force F i is always positive. The two opposing motors always rotate clockwise and the two other motors counterclockwise. With such an arrangement, gyroscopic effects and aerodynamic moments tend to cancel out. The main thrust u is the sum of the individual thrusts of each motor. The pitch and roll moments are always generated by different thrusts of the motors depending on the configuration of the quadcopter. The turning moment is the sum of τ M 1 + τ M 2 + τ M 3 + τ M 4 , where τ M i is the reaction moment of motor i resulting from the acceleration of the shaft and the resistance of the blades. The aerodynamic drag τ d r a g can be completely derived from [25] and, in result, it is:
τ M i = τ d r a g
Forward, backward, and sideways movements can then be achieved by increasing and decreasing the thrusts of the respective motors, depending on the configuration of the quadcopter.
Quadcopters use the changes in the thrust of individual rotors to move in space. Depending on the thrust ratio, individual rotors create torques. These moments cause a change in the orientation of the quadcopter in space [26,27]. However, it is also necessary to take into account the configuration of the quadcopter. Because quadcopters are symmetrical, they can fly in two different configurations, the “+” configuration and the “X” configuration. In the “X” configuration, the roll and pitch of the quadcopter are always determined by pairs of motors. In the “+” configuration, it is always only one of the motors. For each of the two configurations (+, X), the coordinate system is the same. The quadcopter will ascend and descend along the z-axis, move forward and backward along the x-axis, and move left and right along the y-axis.
  • Yaw ( Ψ ) is a rotation about the z-axis that turns the quadcopter right or left by changing the direction of flight.
  • Pitch ( θ ) is the rotation about the y-axis that allows forward and backward flight along the x-axis.
  • Roll ( ϕ ) is a rotation about the x-axis that allows right and left flying along the y-axis.
The change in the spatial orientation of the quadcopter depending on the configuration and the thrust ratio of the individual rotors is shown in Figure 3, Figure 4 and Figure 5. The direction of rotation of the rotor blades is shown in green and blue, the thrust of the individual rotors is shown by the length of the red arrow, which is directed from the center of the rotor, and the direction of the resulting rotation of the UAV is shown by the orange arrow.
The moments acting on the structure of the UAV can be divided into two parts. The first part is the moments that are caused by the rotation of the rotors and the second part is the moments that are caused by the translational movement of the UAV. The rotation of the rotors creates a moment M Ψ that can cause the UAV to rotate around the z-axis. The size of the moment M Ψ depends on the ratio and changes in the revolutions of the individual rotors. Another part depends on how the thrust is distributed between the individual rotors. The torques M Φ and M Θ are created by the ratio of thrusts between the rotors. A detailed description of the thrust ratios for the execution of different maneuvers for the “+” configuration and the “X” configuration [28] is given in Table 1.
Depending on the configuration, individual motors can therefore control thrust, pitch, roll and yaw, which is described in Table 2.
Since, in our work, we exclusively use quadcopters in the “X” configuration, the following section will describe the mathematical derivation of the equations of the dynamic model of the quadcopter, just for the “X” configuration.
The equations of the dynamic model of the quadcopter are based on the Newton–Euler derivation. The orientation vector of the quadcopter with respect to the inertial frame is expressed as η = ψ , θ , ϕ T , where ψ , θ , and ϕ are the Euler yaw, pitch, and roll angles, respectively. The quadcopter’s nonlinear dynamics can be expressed as:
m ξ ¨ = m g D + R F
I Ω ˙ = Ω × I Ω + τ
where D is drag, R   ϵ   S O 3 is the rotation matrix that connects the inertial frame to the frame rigidly connected to the copter (SO(3) is a special orthogonal group), F expresses the total force acting on the copter, m is the total mass of the copter, g denotes the gravitational constant, Ω represents the angular velocity of the copter, I describes the matrix of inertia and τ is the total moment of momentum [25].
Let u = i = 1 4 T i be the force acting on the copter, which is generated by the four rotors. Assuming that this force has only one component in the z axis direction, in that case we can write F = 0 ,   0 , u T . The rotation matrix R is defined as:
R = c o s ψ   c o s θ s i n ψ   c o s θ s i n θ c o s ψ   s i n θ   s i n ϕ s i n ψ   c o s ϕ s i n ψ   s i n θ   s i n ϕ + c o s ψ   c o s ϕ c o s θ   s i n ϕ c o s ψ   s i n θ   c o s ϕ + s i n ψ   s i n ϕ s i n ψ   s i n θ   c o s ϕ s i n ϕ   c o s ψ c o s θ   c o s ϕ
Let us define the auxiliary vector τ ˜ related to the generalized angular momentum :
τ ˜ = τ ˜ ψ τ ˜ θ τ ˜ ϕ = I 1 W 1 I W ˙ η ˙ W η ˙ × I W η ˙ + τ
where Ω = W η ˙ and W can be expressed as [29]:
W = s i n θ 0 1 c o s θ   s i n ϕ c o s ϕ 0 c o s θ   c o s ϕ s i n ϕ 0
Using Equations (2)–(5), the dynamics of the quadcopter will be expressed as follows:
m x ¨ = u c o s ψ   s i n θ   c o s ϕ + s i n ψ   s i n ϕ
m y ¨ = u s i n ψ   s i n θ   s i n ϕ c o s ψ   s i n ϕ
m z ¨ = u   c o s θ   c o s ϕ + m g
ψ ¨ = τ ˜ ψ
θ ¨ = τ ˜ θ
ϕ ¨ = τ ˜ ϕ
In the “X” configuration quadcopter model, the M1 and M2 motors rotate counterclockwise and the M3 and M4 motors rotate clockwise. Assuming that the total thrust acts approximately to the same degree as gravity, the quadcopter will hover in one place, i.e., it will be in hover. Then, we can model the thrust of each motor as τ i = C ω i 2 , where C is a constant that depends on the characteristics of the rotor and ω i indicates the speed of rotor i [30]. For simplicity, it is also assumed that the angular momentum τ i generated by each rotor is proportional to lift; therefore, τ i = C M T i .
Taking into account the previous assumptions, we can then express the generalized moments as:
τ ψ τ θ τ ϕ = C M C M l l l l         C M C M l l l l T 1 T 2 T 3 T 4
where l is the distance between the center of the copter and the center of the rotor, CM is a constant that depends on the characteristic of the rotor, and T is a thrust of the rotor. The final relations for the calculation of position angles can also be derived as [31,32,33]:
ϕ ¨ = θ ˙ ψ ˙ I y y I z z I x x J I x x θ ˙ Ω + 1 I x x τ ϕ
θ ¨ = ϕ ˙ ψ ˙ I z z I x x I y y + J I y y ϕ ˙ Ω + 1 I y y τ θ
ψ ¨ = θ ˙ ϕ ˙ I x x I y y I z z + 1 I z z τ ψ

3. Modeling of Quadcopter Characteristics

Due to the fact that we have a measurement system [23] at our disposal that can measure UAV parameters (total thrust and thrusts of individual motors), we do not need to create a model of control and propulsion systems, and it is sufficient to create a model of the dynamics of the quadcopter. An important aspect when modeling a quadcopter is determining its parameters. With this step, we will obtain a higher accuracy of the mathematical model of the dynamics of the quadcopter. Some of the parameters can be determined experimentally (quadcopter dimensions listed in Table 3) and some using numerical methods (moments of inertia listed in Table 4).
Clarifying the moments of inertia of the quadcopter is important from the point of view of formulating the relations for determining the flight dynamics. There are different ways to determine these parameters, either by experimental measurement or based on theoretical numerical methods. Since the experimental methods of determining these parameters are time-consuming, we chose a numerical method for the calculation by applying Steiner’s theorem, which makes it possible to calculate the moment of inertia of a rotating body around an axis that does not pass through its center of gravity [34]. In this way, for example, it is possible to calculate the moment of inertia of a body that is composed of several basic bodies, as it is enough to know the moments of inertia of individual bodies and the distance of their centers of gravity from the center of gravity of the composite body. In the case of calculating the moments of inertia for a quadcopter, we can therefore consider that the copter is a body composed of two parts. The first part is a frame in the shape of a cross, which has a defined arm length, and the second part is a central block in the shape of a cuboid with the dimensions a, b, and c. Figure 6 describes this situation.
To calculate the moments of inertia, we derived the following relations:
I x x = I y y = 2 . m l + L 2 + 1 12 M t c 2 + b 2 + M t c 2 2
I z z = 1 12 M t a 2 + b 2 + 4 . m l + L 2
I x y = 0
I x z = I y z = 0
where M t is the total weight, which includes the weight of the battery and the weight of the central part of the quadrocopter (electronics and sensors) in the shape of a cuboid in the range from the center of gravity to l . Another variable is the weight m , which expresses the weight of the frame in the range from l to L and also the weight of the motors [35]. The following tables give a detailed description.
These parameters are also inputs into a dynamic quadcopter model. On the basis of the given relations for calculation and on the basis of the given parameters of the copter, we calculated the moments of inertia, which are described in Table 5.
The mathematical model of the UAV is created on the basis of relations for rotational and translational motion and relations for calculating moments of momentum [36,37,38]. The main output from the model will be the position angles of the quadcopter ψ ,   θ ,   ϕ . The input to the copter model is the data obtained from the measurement system [23], from the individual motors M1, M2, M3, and M4. To each of the motors correspond two tensometric force sensors in the measuring system. The values from these sensors are added up and subsequently converted to the thrust for individual motors. The copter model will consist of several subsystems in which calculations will be performed (Figure 7).
The input to the moment calculation block is the thrusts of the individual motors, obtained from the measurement system. The calculations in this block depend on the moment equations and can be adapted to the specific configuration of the quadcopter. We know two different configurations for quadcopters, the “+” configuration and the “X” configuration. In our case, given the copter used, we worked with the equations for the “X” configuration. The outputs of the block are the individual moments around the x ,   y ,   z axes, based on which it is possible to determine the position angles of the quadcopter in the next step. In addition to the mentioned moments, we also get the total angular velocity and the total thrust of the copter at the output of this block. The structure of this block can be seen in Figure 8.
The variables U2, U3, and U4, which describe the moments around individual axes of the copter, and the variable “omega”, which determines the total angular velocity, enter the block for calculating the position angles. The structure of the position angle calculation block is described in Figure 9.
The block for calculating position angles contains subsystems that separately recalculate the accelerations for the pitch, roll, and yaw of the quadcopter. The outputs from this block are angular accelerations, which are subsequently converted to angles by including integrators in the calculation. After creating the quadcopter model, it was necessary to verify the entire model. To verify the correct functionality of the model, we just need to apply the thrusts of the motors as the input to the model. To visualize the data, we used a Simulink Scope block in which we displayed the output for pitch ( θ ), roll ( ϕ ), yaw ( ψ ), and height ( z ).
Even before the actual verification, however, it is necessary to enter additional inputs which are necessary for performing the calculations. These are mainly the basic parameters of the quadcopter used, which include the total weight of the copter, the length of the copter arm, and individual moments of inertia (Table 3, Table 4 and Table 5).
In the first step, we set the same thrust for each of the motors at each input to the model. The output from the model with such settings is shown in Figure 10, where after setting the same thrust value for each of the motors, the height value changes at the output of the model, i.e., the quadcopter tends to rise. The values of the position angles ψ , θ , ϕ do not change and are zero, from which we can conclude that the first of the calculations works correctly.
In the next step, it is necessary to verify whether the calculations for the position angles θ , ϕ , ψ respond correctly. This can be verified by applying different thrust values at the input to the model. During the verification, we will start from Figure 4 (or Table 1), which shows the thrust ratios of the individual motors for performing the required maneuver.
To verify the functionality of the model for the roll mode, in the first step we have set an increased thrust at the input of motors M1 and M4, and the thrust on motors M2 and M3 was reduced, which should have been reflected by a roll to the left. In the second step, we reversed the ratios between the pairs, which should have rolled the quadcopter to the right. The resulting output graphs are shown in Figure 11. Similarly, we verified the model for the pitch and yaw of the quadcopter, as shown in Figure 12 and Figure 13.
Based on the output curves, it can be concluded that the proposed model works correctly and the relations for the calculations were derived correctly.
To be able to model flight characteristics based on static laboratory measurements, it is necessary to input the measured thrusts from the measurement system into the model and then introduce feedback from the model of the copter’s dynamics into the FC. We implemented the feedback system using a servo platform with a PID controller, on which the flight controller unit can be placed [39]. The platform works by tilting the FC based on the motor thrusts and the modeled response, thus simulating realistic accelerations and rotations for the flight controller sensors. By such introduction of feedback, the servo platform turns the flight controller unit to the desired position, given the recalculated position angles at the output of the copter dynamics algorithm, which was described in previous research [39]. The PID constants for the servo platform were obtained from the FC of the tested quadcopter, so its reactions could be observed in the modeled and simulated environment.
After introducing feedback into the measurement system, we performed measurements focusing on the desired deflection and the measured deflection, which is the output of the copter’s dynamics model. The measurement chain is shown in Figure 14. During the measurement, we used the NUCLEO H743ZI microcontroller (Madrid, Spain), which has a 16-bit A/D converter. During the measurement, the drone was attached to the measurement system, which is shown in Figure 15.

4. Results

The measurement process took place via the operator setting the required deviation of the pitch angle on the controller. Given the desired angle, the individual UAV motors began to produce thrust, which was measured using the UAV parameter-measurement system. The thrust measured this way was then fed to the input of the dynamic model, where a recalculation was made based on the thrust ratio for the simulation of position angles. The measured and simulated characteristic is shown in Figure 16.
According to the measured curves, the operator set the required angle to a value of approximately −12° in the first step, the modeled (measured) angle also reached a value of approximately −12°. In the second step, the control stick was set to the central position, i.e., the required and measured angle was 0°. In the last step, the desired angle was approximately +12°, and the measured values were also approximately 12°. For testing the roll axis, the results are the same, as the quadcopter is symmetrical along the two horizontal axes, and the PID controllers also use the same constants. Since quadcopters have less authority along the yaw axis compared to the pitch and roll axes, those measurements were not deemed crucial in this phase, but will be conducted in further research.
Overshoots that can be observed when quickly returning to the 0° position (especially at the end) may be caused by the use of a TEMA filter when measuring the thrusts of individual motors, or by setting the PID controller. Considering this fact, it is possible to solve the problem of tuning UAV control algorithms through future optimization based on the characteristics modeled in this way. If, for example, the weight of the quadcopter changes, it manifests itself in the modeled characteristics, which can be used to fine-tune the PID controller constants.
When evaluating the measurement, we compared the deviations between the required data and the measured data, which are the output of the quadcopter dynamics model (according to the curves in Figure 16). The results are described in Table 6.
When evaluating the accuracy of the model, we also focused on the MAAE (maximum absolute error), MAE (mean absolute error) and MAPE (mean absolute percentage error) [40,41]. We calculated errors for stable parts of the characteristic (blue parts) and for selected parts of the characteristic where there was a change in deviation (green parts), according to Figure 16. The calculated results for individual parts of the characteristic are shown in Table 7.
Considering the mentioned values, we can state that the calculated errors did not exceed the limit of 1% in any case. Based on this, it can be concluded that the accuracy in modeling the characteristics of the quadcopter based on static laboratory measurements, using the designed measurement system and the model of the dynamics of the quadcopter, is more than 99%.
For verification, we added two more measurements with a quadcopter, but the weight of the payload was increased by 100 g (Figure 17 and Figure 19) and the constants of the PID controller were the same. The results are similar to those in Figure 16. Differences between the desired and modeled pitch/roll are shown in Figure 18 and Figure 20.

5. Discussion

UAV parameter modeling is currently the subject of various research. Emphasis is mainly placed on tuning UAV control algorithms and reducing the time required for tuning PID controllers. This can be achieved by using the designed measurement system [23] and implementing the mathematical model of UAV dynamics into this system. The main benefits of the given method of UAV dynamics modeling are a specific technical solution and a new method that allows measuring the parameters and modeling the characteristics of unmanned vehicles, based on static laboratory measurements, without knowing the model of the specific motors used on the UAV. The advantage of this method is that the unmanned vehicle is firmly connected to the measurement system. The output of the measurement system is the parameters of the unmanned vehicle, i.e., the thrusts of the individual motors. The measured thrusts enter the mathematical model of UAV dynamics, where they are subsequently converted to position angles. The obtained dynamics model can be used for the tuning and optimization of UAV control algorithms. The implemented technical solution allows the theoretical use of this method for any four-rotor UAV weighing up to 40 kg, due to the working range of the sensors used in the system. The proposed method is especially beneficial from the point of view of optimization of the control algorithms of UAV flight stabilization. The method reduces the time-consuming optimization of the control algorithms, as it allows corrections of the control electronics to be made in the future without the need to perform a test flight.
However, the accuracy of the measurement and calculations also depends on the A/D converter used. It is advantageous to use a converter with a higher resolution, which increases the accuracy of the simulation and modeling. In modeling, we used a microcontroller with a 16-bit converter, which brought the resolution of the measurement system to the level of 0.4637 g/bit (so the resolution of one sensor is 0.0579625 g/bit). With such a resolution, the error of the measuring system was limited to ±0.4637 g.
In this article, the parameters of the used quadcopter were determined and the procedure for calculating these parameters was given, and a mathematical model of the dynamics of the UAV was also created, along with the verification of its functionality and the subsequent introduction of feedback from the model back into the measurement system. Based on this model, an algorithm for calculating the position angles and coordinates of a UAV in three-dimensional space was created and implemented in the microcontroller. In the end, a verification measurement was carried out, aimed at modeling the characteristics of the quadcopter, along with an evaluation of accuracy.
The potential for further development in the given area is mainly in the modification of the software, the implementation of the algorithm for the automated calculation of the constants of the control electronics regulators, and the implementation of neural networks in the calculation. In addition, it is possible to create a custom GUI solution in the future, which will, among other things, provide several options, from the calculation of the copter’s parameters to the visualization of the measured data and their evaluation. These topics are the subject of our further research and development in the area of UAV modeling.

6. Conclusions

The aim of this paper was to design a UAV dynamics model based on previous research in the field of measurement systems for measuring UAV parameters. In this article, the issue of modeling position angles from a mathematical point of view was discussed, and based on mathematical equations, a quadcopter dynamics model for the “X” configuration was subsequently created in the MATLAB Simulink environment. The input to the model is the measured thrusts from the UAV engines, on the basis of which we can calculate the individual positional angles of the pitch, roll, and yaw. From the results in Table 6, it is clear to see that there were only slight differences between the required input and the simulated output, and the MAPE error (Table 7) did not exceed the value of 1% in any of the cases. From the point of view of the simulated data, the measured data, and the results presented in the tables, it can be concluded that the model works correctly and the results of the simulation of position angles based on static laboratory measurements have an accuracy of more than 99%. This was verified by additional measurements with different weight properties of the quadcopter. The results of these measurements are shown in Figure 17 and Figure 19. The difference between the desired and measured pitch/roll is shown in Figure 18 and Figure 20. The measured data in both figures are similar to those in Figure 16, which is proof of the high accuracy of the UAV mathematical model as mentioned in Table 7.

7. Patents

For the solution mentioned in this article, a patent application for a measuring system with application number 50020-2021 was filed at the Office of Industrial Property of the Slovak Republic.

Author Contributions

Conceptualization, J.N. and Z.S.; methodology, J.N., M.Š. and P.K.; software, J.N. and Z.S.; validation, J.N. and P.K.; formal analysis, M.Š.; investigation, J.N., Z.S., M.Š. and P.K.; data curation, J.N. and Z.S.; writing—original draft preparation, J.N.; writing—review and editing, Z.S.; visualization, J.N.; supervision, M.Š. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Cultural and Educational Grant Agency MŠVVaŠ SR, grant number 045TUKE-4/2022 and Research Agency, ITMS code number 313011AUP1.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yaprak, S.; Ömer, Y.; Susam, T. UAV Based Agricultural Planning and Landslide Monitoring. TeMA-J. Land Use Mobil. Environ. 2017, 11, 325–338. [Google Scholar]
  2. Maini, P.; Tokekar, P.; Sujit, P.B. Visual Monitoring of Points of Interest on a 2.5D Terrain Using a UAV with Limited Field-of-View Constraint. IEEE Trans. Aerosp. Electron. Syst. 2021, 57, 3661–3672. [Google Scholar] [CrossRef]
  3. d’Oleire-Oltmanns, S.; Marzolff, I.; Peter, K.; Ries, J. Unmanned Aerial Vehicle (UAV) for Monitoring Soil Erosion in Morocco. Remote Sens. 2012, 4, 3390–3416. [Google Scholar] [CrossRef]
  4. Braun, J.; Braunová, H.; Suk, T.; Michal, O.; Peťovský, P.; Kuric, I. Structural and Geometrical Vegetation Filtering-Case Study on Mining Area Point Cloud Acquired by UAV Lidar. Acta Montan. Slovaca 2021, 26, 661–674. [Google Scholar] [CrossRef]
  5. Qin, H.; Meng, Z.; Meng, W.; Chen, X.; Sun, H.; Lin, F.; Ang, M.H. Autonomous Exploration and Mapping System Using Heterogeneous UAVs and UGVs in GPS-Denied Environments. IEEE Trans. Veh. Technol. 2019, 68, 1339–1350. [Google Scholar] [CrossRef]
  6. Lipovský, P.; Draganová, K.; Novotňák, J.; Szőke, Z.; Fiľko, M. Indoor Mapping of Magnetic Fields Using UAV Equipped with Fluxgate Magnetometer. Sensors 2021, 21, 4191. [Google Scholar] [CrossRef] [PubMed]
  7. Lipovský, P.; Fil’ko, M.; Novotňák, J.; Szöke, Z.; Košuda, M.; Draganová, K. Concept of Magnetic Microwires Based Magnetometer for UAV Geophysical Survey. In Proceedings of the International Conference on New Trends in Signal Processing (NTSP), Demanovska Dolina, Slovakia, 14–16 October 2020; pp. 1–5. [Google Scholar]
  8. Yavuz, D.; Akbıyık, H.; Bostancı, E. Intelligent drone navigation for search and rescue operations. In Proceedings of the 24th Signal Processing and Communication Application Conference (SIU), Zonguldak, Turkey, 16–19 May 2016; pp. 565–568. [Google Scholar]
  9. Iob, P.; Frau, L.; Danieli, P.; Olivieri, L.; Bettanini, C. Avalanche Rescue with Autonomous Drones. In Proceedings of the 2020 IEEE 7th International Workshop on Metrology for AeroSpace, MetroAeroSpace, Pisa, Italy, 22–24 June 2020; pp. 319–324. [Google Scholar]
  10. Burkert, F.; Fraundorfer, F. UAV-based monitoring of pedestrian groups. ISPRS-Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2013, 40, 67–72. [Google Scholar] [CrossRef]
  11. Avola, D.; Foresti, G.L.; Martinel, N.; Micheloni, C.; Pannone, D.; Piciarelli, C. Aerial video surveillance system for small-scale UAV environment monitoring. In Proceedings of the 2017 14th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS), Lecce, Italy, 29 August–1 September 2017; pp. 1–6. [Google Scholar]
  12. Bogatov, S.; Mazny, N.; Pugachev, A.; Tkachenko, S.; Shvedov, A. Emergency Radiation Survey Device Onboard the UAV. ISPRS-Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2013, XL-1/W2, 51–53. [Google Scholar] [CrossRef]
  13. Lassak, M.; Draganova, K.; Blistanova, M.; Kalapos, G.; Miklos, J. Small UAV Camera Gimbal Stabilization Using Digital Filters and Enhanced Control Algorithms for Aerial Survey and Monitoring. Acta Montan. Slovaca 2020, 25, 127–137. [Google Scholar]
  14. Wang, G.; Han, N.; Lv, Y.; Zhang, D. UAV onboard electronic detection system based on simulation test technology. In Proceedings of the 2013 IEEE 11th International Conference on Electronic Measurement & Instruments, Harbin, China, 16–19 August 2013; pp. 608–611. [Google Scholar]
  15. Bozek, P.; Al Akkad, M.A.; Blistan, P.; Ibrahim, N.I. Navigation control and stability investigation of a mobile robot based on a hexacopter equipped with an integrated manipulator. Int. J. Adv. Robot. Syst. 2017, 14, 6. [Google Scholar] [CrossRef]
  16. Matejček, M.; Šostronek, M. The Influence of Inertial Sensors Parameters on Guidance Systems. In Proceedings of the 2020 New Trends in Signal Processing (NTSP), Demanovska Dolina, Slovakia, 14–16 October 2020; pp. 1–6. [Google Scholar] [CrossRef]
  17. Ambroziak, L.; Gosiewski, Z. Preliminary UAV Autopilot Integration and In-Flight Testing. Solid State Phenom. 2013, 198, 232–237. [Google Scholar] [CrossRef]
  18. Zhou, X.; Yu, X.; Peng, X. UAV Collision Avoidance Based on Varying Cells Strategy. IEEE Trans. Aerosp. Electron. Syst. 2019, 55, 1743–1755. [Google Scholar] [CrossRef]
  19. Lipovský, P.; Szőke, Z.; Moucha, V.; Jurč, R.; Novotňák, J. Data Acquisition System for UAV Autopilot and Operator Evaluation. In Proceedings of the 2019 Modern Safety Technologies in Transportation (MOSATT), Košice, Slovakia, 28–29 November 2019; pp. 98–103. [Google Scholar]
  20. Abdalla, M.; Al-Baradie, S. Real Time Optimal Tuning of Quadcopter Attitude Controller Using Particle Swarm Optimization. J. Eng. Technol. Sci. 2020, 52, 745–764. [Google Scholar] [CrossRef]
  21. Park, D.; Le, T.L.; Quynh, N.V.; Long, N.K.; Hong, S.K. Online Tuning of PID Controller Using a Multilayer Fuzzy Neural Network Design for Quadcopter Attitude Tracking Control. Front. Neurorobotics 2021, 14, 619350. [Google Scholar] [CrossRef] [PubMed]
  22. Sahrir, N.H.; Basri, A. Modelling and Manual Tuning PID Control of Quadcopter. In Control, Instrumentation and Mechatronics: Theory and Practice; Springer Nature: Singapore, 2022. [Google Scholar] [CrossRef]
  23. Novotňák, J.; Fiľko, M.; Lipovský, P.; Šmelko, M. Design of the System for Measuring UAV Parameters. Drones 2022, 6, 213. [Google Scholar] [CrossRef]
  24. Cai, G.; Chen, B.M.; Lee, T.H. Coordinate Systems and Transformations. In Unmanned Rotorcraft Systems; Springer: London, UK, 2011; pp. 23–34. [Google Scholar] [CrossRef]
  25. Carrillo, L.R.G.; López, A.E.D.; Lozano, R.; Pégard, C. Quad Rotorcraft Control—Vision Based Hovering and Navigation; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  26. Bresciani, T. Modelling, Identification and Control of a Quadrotor Helicopter. Master’s Thesis, Department of Automatic Control, Lund University, Lund, Sweden, 2008. [Google Scholar]
  27. Mahony, R.; Kumar, V.; Corke, P. Multirotor Arial Vehicles, Modeling Estimation and Control of Quadrotors. IEEE Robot. Automat. Mag. 2012, 19, 20–32. [Google Scholar] [CrossRef]
  28. Akhartm, S.N. The Use of Modern Tools for Modelling and Simulation of UAV with Haptic. Master’s Thesis, Cranfield University, Bedford, UK, 2017. [Google Scholar]
  29. Goldstein, H. Classical Mechanics; Addison Wesley: Reading, UK, 1980. [Google Scholar]
  30. Altug, E.; Ostrowski, J.P.; Taylor, C.J. Control of a quadrotor helicopter using dual camera visual feedback. Int. J. Robot. Res. 2005, 24, 329–341. [Google Scholar] [CrossRef]
  31. ElKholy, H.; Habib, M.K. Dynamic Modeling and Control of a Quadrotor Unmanned Aerial Vehicle; School of Science and Engineering, American University in Cairo: Cairo, Egypt, 2014. [Google Scholar]
  32. Bouaiss, O.; Mechgoug, R.; Ajgou, R. Modeling, Control and Simulation of Quadrotor UAV. In Proceedings of the 1st International Conference on Communications, Control Systems and Signal Processing, El Oued, Algeria, 16–17 May 2020. [Google Scholar]
  33. Selby, W. System Modeling. Available online: https://www.wilselby.com/research/arducopter/modeling/ (accessed on 5 May 2024).
  34. Vicente, M. Modelling of the Flight dynamics of a Quadrotor Helicopter. Master’s Thesis, School of Engineering, Cranfield University, Bedford, UK, 2007. [Google Scholar]
  35. Putro, I.E. Modeling and Control Simulation For Autonomous Quadrotor; LAP LAMBERT Academic Publishing: Saarbrucken, Germany, 2011. [Google Scholar]
  36. Alaiwi, Y.; Mutlu, A. Modelling, simulation and implementation of autonomous unmanned quadrotor. Mechines Technol. Mater. 2018, 12, 320–325. [Google Scholar]
  37. Selby, W. Simulation Environment. Available online: https://www.wilselby.com/research/arducopter/simulation-environment/ (accessed on 5 May 2024).
  38. Usman, M. Quadcopter Modelling and Control With MATLAB/Simulink Implementation; LAB University of Applied Sciences, Technology Lappeenranta, Mechanical Engineering and Production Technology: Saarbrucken, Germany, 2020. [Google Scholar]
  39. Szőke, Z.; Novotňák, J.; Lipovský, P.; Šmelko, M.; Filko, M.; Košuda, M. Design of Workplace for Multirotor UAV Parameters Measurement. In Proceedings of the 2020 New Trends in Aviation Development (NTAD), Stary Smokovec, Slovakia, 17–18 September 2020; pp. 236–239. [Google Scholar] [CrossRef]
  40. Mean Absolute Percentage Error (MAPE). In Encyclopedia of Production and Manufacturing Management; Swamidass, P.M. (Ed.) Springer: Boston, MA, USA, 2000. [Google Scholar]
  41. Mean Absolute Error. In Encyclopedia of Machine Learning; Sammut, C.; Webb, G.I. (Eds.) Springer: Boston, MA, USA, 2011. [Google Scholar]
Figure 1. Quadcopter reference frames.
Figure 1. Quadcopter reference frames.
Drones 08 00280 g001
Figure 2. Quadcopter control.
Figure 2. Quadcopter control.
Drones 08 00280 g002
Figure 3. Thrusts in the “+” configuration.
Figure 3. Thrusts in the “+” configuration.
Drones 08 00280 g003
Figure 4. Thrusts in the “X” configuration.
Figure 4. Thrusts in the “X” configuration.
Drones 08 00280 g004
Figure 5. Quadcopter dynamics in “X” configuration.
Figure 5. Quadcopter dynamics in “X” configuration.
Drones 08 00280 g005
Figure 6. Quadcopter used and its parameters.
Figure 6. Quadcopter used and its parameters.
Drones 08 00280 g006
Figure 7. Dynamic model of quadcopter.
Figure 7. Dynamic model of quadcopter.
Drones 08 00280 g007
Figure 8. Structure of the subsystem for moments calculations.
Figure 8. Structure of the subsystem for moments calculations.
Drones 08 00280 g008
Figure 9. Structure of the accelerations subsystem for position angle calculations.
Figure 9. Structure of the accelerations subsystem for position angle calculations.
Drones 08 00280 g009
Figure 10. Model validation of output characteristic for height.
Figure 10. Model validation of output characteristic for height.
Drones 08 00280 g010
Figure 11. Output characteristic of model verification for roll left (a) and right (b).
Figure 11. Output characteristic of model verification for roll left (a) and right (b).
Drones 08 00280 g011
Figure 12. Output characteristic of model verification for pitch forward (a) and backward (b).
Figure 12. Output characteristic of model verification for pitch forward (a) and backward (b).
Drones 08 00280 g012
Figure 13. Output characteristic of model verification for yaw left (a) and right (b).
Figure 13. Output characteristic of model verification for yaw left (a) and right (b).
Drones 08 00280 g013
Figure 14. Block diagram of the measuring chain.
Figure 14. Block diagram of the measuring chain.
Drones 08 00280 g014
Figure 15. Drone attached to the measurement system.
Figure 15. Drone attached to the measurement system.
Drones 08 00280 g015
Figure 16. Desired and modeled (measured) pitch.
Figure 16. Desired and modeled (measured) pitch.
Drones 08 00280 g016
Figure 17. First verification of the desired and modeled (measured) pitch/roll when the weight of the payload was increased by 100 g.
Figure 17. First verification of the desired and modeled (measured) pitch/roll when the weight of the payload was increased by 100 g.
Drones 08 00280 g017
Figure 18. Difference between the desired and modeled pitch/roll from Figure 17.
Figure 18. Difference between the desired and modeled pitch/roll from Figure 17.
Drones 08 00280 g018
Figure 19. Second verification of the modeled (measured) pitch/roll, with a different input for the desired pitch/roll and the weight of the payload increased by 100 g.
Figure 19. Second verification of the modeled (measured) pitch/roll, with a different input for the desired pitch/roll and the weight of the payload increased by 100 g.
Drones 08 00280 g019
Figure 20. Difference between the desired and modeled pitch/roll from Figure 19.
Figure 20. Difference between the desired and modeled pitch/roll from Figure 19.
Drones 08 00280 g020
Table 1. Thrust ratios of individual motors during various quadcopter maneuvers for “+” and “X” configurations.
Table 1. Thrust ratios of individual motors during various quadcopter maneuvers for “+” and “X” configurations.
Maneuver“X” Configuration“+” Configuration
Forward flightThrust M1 and M3 lowered
Thrust M2 and M4 risen
Thrust M3 lowered
Thrust M4 risen
Backward flightThrust M1 and M3 risen
Thrust M2 and M4 lowered
Thrust M3 risen
Thrust M4 lowered
Flight to leftThrust M1 and M4 risen
Thrust M2 and M3 lowered
Thrust M1 risen
Thrust M2 lowered
Flight to rightThrust M1 and M4 lowered
Thrust M2 and M3 risen
Thrust M1 lowered
Thrust M2 risen
Rotation leftThrust M1 and M2 risen
Thrust M3 and M4 lowered
Thrust M1 and M2 risen
Thrust M3 and M4 lowered
Rotation rightThrust M1 and M2 lowered
Thrust M3 and M4 risen
Thrust M1 and M2 lowered
Thrust M3 and M4 risen
Table 2. Description of thrust (T), pitch ( θ ), roll ( ϕ ) and yaw ( ψ ) controls depending on quadcopter configuration.
Table 2. Description of thrust (T), pitch ( θ ), roll ( ϕ ) and yaw ( ψ ) controls depending on quadcopter configuration.
“X” Configuration“+” Configuration
M1 = T + θ + ϕ ψ M1 = T + θ + ψ
M2 = T + θ ϕ + ψ M2 = T − ϕ ψ
M3 = T − θ ϕ ψ M3 = T − θ + ψ
M4 = T − θ + ϕ + ψ M4 = T + ϕ ψ
Table 3. Quadcopter weight parameters.
Table 3. Quadcopter weight parameters.
ComponentWeight
Motors and Propellers0.316 kg
Battery0.325 kg
Electronics, Sensors and Controllers0.341 kg
Frame—central part0.187 kg
Frame—arms0.156 kg
Total weight1.325 kg
Table 4. Quadcopter dimension parameters.
Table 4. Quadcopter dimension parameters.
DimensionValue
a0.095 m
b0.095 m
c0.115 m
l0.0665 m
L0.160 m
Table 5. Quadcopter moments of inertia.
Table 5. Quadcopter moments of inertia.
Moment of InertiaValue
Ixx0.05283115 kg.m2
Iyy0.05283115 kg.m2
Izz0.0981417 kg.m2
Table 6. Evaluation of measured data.
Table 6. Evaluation of measured data.
DataMin. ValueMax. Value
Required angle −11.96°12.06°
Measured angle−12.27°12.45°
Maximal difference0.31°0.39°
Table 7. Evaluation of errors.
Table 7. Evaluation of errors.
Part of the CurveMAAEMAEMAPE (%)Variance
10.80000.2302-0.0888
20.85000.24840.48660.1543
30.56000.22180.33300.1115
A0.35000.19400.2532-
B0.45000.18670.6241-
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.

Share and Cite

MDPI and ACS Style

Novotňák, J.; Szőke, Z.; Kašper, P.; Šmelko, M. Quadcopter Modeling Using a System for UAV Parameters Measurement. Drones 2024, 8, 280. https://doi.org/10.3390/drones8070280

AMA Style

Novotňák J, Szőke Z, Kašper P, Šmelko M. Quadcopter Modeling Using a System for UAV Parameters Measurement. Drones. 2024; 8(7):280. https://doi.org/10.3390/drones8070280

Chicago/Turabian Style

Novotňák, Jozef, Zoltán Szőke, Patrik Kašper, and Miroslav Šmelko. 2024. "Quadcopter Modeling Using a System for UAV Parameters Measurement" Drones 8, no. 7: 280. https://doi.org/10.3390/drones8070280

APA Style

Novotňák, J., Szőke, Z., Kašper, P., & Šmelko, M. (2024). Quadcopter Modeling Using a System for UAV Parameters Measurement. Drones, 8(7), 280. https://doi.org/10.3390/drones8070280

Article Metrics

Back to TopTop