# Controller for a Low-Altitude Fixed-Wing UAV on an Embedded System to Assess Specific Environmental Conditions

Authors: Johannes von Eichel-Streiber; Christoph Weber; Jesús Rodrigo-Comino; Jens Altenburg
Journal: International Journal of Aerospace Engineering
 (2020)

---

## Abstract

The use of an appropriate sensor on an unmanned aerial vehicle (UAV) is vital to assess specific environmental conditions successfully. In addition, technicians and scientists also appreciate a platform to carry the sensors with some advantages such as the low costs or easy pilot management. However, extra requirements like a low-altitude flight are necessary for special applications such as plant density or rice yield. A rotary UAV matches this requirement, but the flight endurance is too short for large areas. Therefore, in this article, a fixed-wing UAV is used, which is more appropriate because of its longer flight endurance. It is necessary to develop an own controller system to use special sensors such as Lidar or Radar on the platform as a multifunctionality system. Thereby, these sensors are used to generate a digital elevation model and also as a collision avoidance sensor at the same time. To achieve this goal, a small UAV was equipped with a hardware platform including a microcontroller and sensors. After testing the system and simulation, the controller was converted into program code to implement it on the microcontroller. After that, several real flights were performed to validate the controller and sensors. We demonstrated that the system is able to work and match the high requirements for future research.


---

## Body

## 1. Introduction

The selection and use of specific sensors devoted to assessing different environmental issues for remote sensing applications are essential for scientists and technicians [1, 2]. However, traditional platforms such as satellites or manned aircraft have some recognized disadvantages to including specific sensors. For instance, satellites often do not meet the desired resolution and can be very expensive [3]. On the other hand, a manned aircraft needs an expensive pilot and produces other costs, e.g., aircraft fuel [4, 5]. Besides these two platforms, there are some more that recently have been considered for the scientific community, for example, helicopter or terrestrial [6, p. 4]. Heipke et al. [7, p. 34] exposed that there are different platforms (satellite, aircraft, UAS, and terrestrial) divided into different specifications such as costs, operation risk, or resolution. The authors pointed out that the unmanned aircraft systems (UAS) can be considered the platform with the lowest costs. Recently, the small UAS is giving the opportunity to achieve new applications and assess different scenarios with successful results in applied scientific works [8–10]. They are now often used for standard applications such as topographical surveying, inspection flights, mapping, and surveillance [11, p. 119]. Besides these, there are some special applications which need a low-altitude flight such as estimations of plant density [12], rice yield [13], mineral exploration [14], and evaluation of infrastructures as well as meteorological hazard risks [15–17]. All of these applications used to have a rotary UAS which include a multirotor by means of a quadcopter and hexacopter that are able to fly in a low altitude from 3 to 40 m or up to 300 m.Accordingly, it is important to remark that rotary UAS matches the requirements for such a low-altitude flight. However, the endurance is mostly less than 30 minutes because they have no wings for uplift; therefore, they are only useful for small areas. In research where larger areas must be studied, fixed-wing UAS with a flight endurance of about 60 min are necessary [7, p. 44], [18]. The controller for a fixed-wing aircraft is well known and described in detail in the recent literature [19, 20], especially for UAS controlling techniques [21–23]. Besides the literature, there are some commercial autopilots on the market (e.g., Pixhawk 4 and Paparazzi [24]). However, in order to use special sensors, it is necessary to develop its own autopilot. Sensors such as special Lidar [25, 26] or Radar [27, 28] can be easily implemented with multifunctionality systems. Lidar is commonly used in order to generate digital elevation models, detect flow patterns, or assess connectivity [29–31] or even to realize a collision avoid system [32]. On the other hand, for a weather-independent system, Radar is more appropriate [7, p. 53] [33, p. 204].This is possible when a flight controller is developed for the fixed-wing and rotary UAS. However, nowadays, there is a lack of this development; fortunately, increasing interest to design and apply this to assess environmental issues among others is occurring. Therefore, the main aim of this research is to develop an autopilot with special requirements by means of low-altitude flights included in a small fixed-wing UAS equipped with a hardware platform characterized by a microcontroller to run the developed controller program. To achieve this goal, we paid attention to the following: (i) to develop a commercial small fixed-wing unmanned aerial vehicle (UAV) which was equipped with a hardware platform including a microcontroller and several sensors, (ii) to test the UAS including a ground control station and check the integrity of the sensor data to supply the controller, (iii) to analyse the UAV process and develop a simulation including a controller, (iv) to develop a program code that allows to run the simulated controller on the microcontroller, and (v) to test the cascade control loops step by step and discuss the results.


## 2. Unmanned Aircraft System

To test the controller, we use a commercial small fixed-wing UAV “Yuki-Yuki Fly” (Figure1). UAV means the aircraft itself, and UAS is defined as the whole system including a ground station for control. The UAV is characterized to have a wingspan of about 1.6 m and a weight of about 1.6 kg, including the battery. The advantages of this UAV are enough space to mount the newly developed system and the availability for a low price on the market (about €200). Furthermore, this UAV is built with expanded polypropylene (EPP) which is easy to be repaired or changed after a crash or accident.Figure 1
Fixed-wing UAV with modified parts. Pitot tube (a), PCB stack inside (b), and telemetry antenna (c).In this research, we modified the aircraft by implementing in the electronic system a small platform to attach the printed circuit boards (PCB). Three PCB are stacked and connected via a 30-pin header to each other. The size of the complete stack is8×6×5cm. With this concept, it is possible to replace a PCB in a case of hardware updates or failures. Figure 2 shows the PCB stack.Figure 2
Printed circuit boards are stacked and interconnected with a 30-pin header. 30-pin header (a), telemetry (b), GNSS (c), IMU (d),μC (e), and SD card (f).The bottom PCB contains the microcontroller (μC) which is used for the controlling algorithm, sensor data processing, and telemetry connection. The μC is an ARM 32-bit Cortex-M4 CPU from STMicroelectronics with 180 MHz CPU frequency, 128 kB SRAM, and 512 kB flash memory. The program code was written in the programming language “C”, and no additional operating system is used. The program implements all the necessary real-time criteria for the system. This means if the program code takes too much time in case of a failure, the system will restart immediately. The whole restart takes about 60 ms. At this time, the aircraft keeps the last settings and flies further this way. To control the aircraft, this PCB has connectors on the front and on the rear. These are used to connect the servos for setting the flaps, elevator, and rudder as well as the motor controller. Additionally, this PCB has a voltage down converter, which is necessary to supply the μC and the sensors with 3.3 V or 5 V. Usually, an electronic-driven UAV has three to six lithium-ion polymer (LiPo) battery cells in series. The abbreviations for those configurations are 3s and 6s batteries. However, that means it has a voltage of about 12.6 V to 25.2 V and needs to be converted down. Last but not least, an SD card slot, which is located on the front, is included to read and write data. Examples are reading waypoints from the SD card and writing a log file of the flight.The middle PCB in the stack contains an inertial measurement unit (IMU). This is considered the most important sensor and used for basic controlling. For mounting, it is essential to check the position of the IMU in relation to the UAV. The difference between the two needs to be corrected with an offset. The used sensor is a 9 degrees of freedom (DOF) IMU “Bosch BNO055”. The major advantage of this sensor is the integrated sensor fusion functionality. It combines the raw sensor values from the accelerometer, gyroscope, and magnetometer into an orientation vector that contains the Euler angles: roll, pitch, and yaw. All three axes are limited and need to be taken into account in the program code: roll from -90° to +90°; pitch from +180° to -180°; and yaw from 0° to 360°. The data output rate is set to 33.3 Hz, which is connected to theμC in the lower stack via a universal asynchronous receiver transmitter (UART) interface. After disclosing a bug in the communication via UART to the manufacturer, they recommended using the Inter-Integrated Circuit (I2C) interface because it will not be fixed. The bug triggers sometimes a bus overrun error. Because of the relatively low communication speed, the bug occurs only rarely. Therefore, we decided to work around this bug instead of implementing a whole new I2C interface which is highly time-consuming. With this solution, the IMU is fully integrated and not limited in its use.The top PCB in the stack is assembled with a Global Navigation Satellite System (GNSS) sensor and the telemetry. In order to receive a clear GNSS signal, it is located on the top of the stack. The sensor has a built-in embedded antenna. Therefore, no extern GNSS antenna is necessary, which allows saving weight and building space. The sensor is a “Telit SE868” and can receive multiple GNSS services. The most common one is the Global Positioning System (GPS) from the United States [34]. Furthermore, it can receive Galileo signals from the European Union [34] and “Globalnaja nawigazionnaja sputnikowaja sistema”-Global Navigation Satellite System (GLONASS) from Russia [34]. Besides that, it receives satellite-based augmentation system (SBAS) data to get a more accurate position. The maximum output data rate that will be used is 10 Hz. Just as with the IMU sensor, a UART interface is used to receive the data from the GNSS sensor. The data frames are standardized following the National Marine Electronics Association (NMEA) messages [35]. These are checked, analysed, and parsed by the μC. To reduce the traffic on the interface, only the important NMEA messages are enabled. In our case, we used the GGA (positioning fix data) and VTG (course and speed over ground) messages. Additionally, we use the ZDA (time and date) messages but this data will only be sent every five cycles. The GGA data includes standard position information such as latitude and longitude. The VTG message contains the speed and the course. Last but not least, the ZDA message provides the time and will be used to write the log files. Besides these messages, the GNSS sensor provides more information, but this is not necessary for the development of such a system.The last important sensor is the pitot tube to measure the airspeed. In contrast to the GNSS speed, often called groundspeed, the airspeed represents the real speed in the air with consideration of the wind. Figure3 is a comparison of the two speeds in the case of a tailwind.Figure 3
Comparison of the GNSS groundspeed (red) and the pitot tube airspeed (blue) in the case of wind.The speed in the air is slower as on the ground and must be taken into account by the controller. To fly a fixed-wing aircraft, a minimal airspeed is required; otherwise, a stall will be caused and the aircraft will fall down. The tube for the air inlet needs to be placed away from the aircraft-generated turbulences. Therefore, we placed it on the outer end of the wing. The output of the sensor is the speed measured in km/h and can be used by theμC directly.The last part to complete the UAS is the telemetry. The first telemetry connection is used to control the aircraft manually. It is a commercial remote “Futaba T14SG” and communicates through 2.4 GHz. Usually, the manual control is stabilized by the “basic controller” for the roll and pitch axes. Complete control without any controller is possible but not recommended because of high demand by the pilot. Because of the commercial telemetry connection and therefore a limited use, a second connection “Telit LE70-868” was installed on the top PCB (Figure2). This one has a higher range because of better antennas and a frequency of 868 MHz. The antenna of the aircraft is attached on the bottom side of the fuselage (see Figure 1). Through this connection, it is possible to control the UAV. This includes the possibility to (i) monitor the sensors and UAS status, (ii) set up the controller, (iii) verify the results with graphs, (iv) set up different flight modes, and (v) start or stop the autonomous navigation modes as well as the fly home function. This compact ground control station has a 10″ touch screen and is supplied via 5 V USB power.


## 3. Controller and Design of an Autopilot

The implemented sensor units permanently supply theμC with clear information about flight attitude, angular velocity, airspeed, and groundspeed, as well as air pressure, humidity, temperature, and the current GNSS position. The sampling rates of the individual sensors were set to suitable values. For example, the sampling rate of the GNSS sensor as it was mentioned above was set to 10 Hz. The IMU sensor was set to 33.3 Hz. The accuracy and reliability of the individual sensors from the automotive industry can be considered of the highest security, because of the requirements in terms of testing. When selecting each sensor, a great importance was attached to the reliability, as the sensor data influence the individual control and thus the flight behaviour.To develop a suitable autopilot for the fixed-wing airframe, it is necessary to know the plane’s propulsion characteristics. With the available sensor data, process identification could be performed. With the knowledge of the process parameters, a suitable control algorithm was selected and adjusted later. An example of process identification is presented in Figure4, which shows a step response of the longitudinal axis.Figure 4
Process identification of the longitudinal axis. (a) shows the stimulation of the process, and (b) confirms the measured output and the process modulation.
(a)
Jump function(b)
Process identification:PD1T2Figure4(a) shows a jump function which stimulates the process. The deflection was estimated as 50 degrees, and a left curve was initiated. The measured step response was then compared to different differential equations by means of numerical optimization. A PD1T2 process behaviour showed the best agreement, which is shown in Figure 4(b). A PD1T2 transfer function for the longitudinal axis was calculated as follows (equation (1)):
(1)GPD1T2s=KTZ·s+1s2·T+s·2·d·T+1.A process behaviour of the longitudinal axis reflects an oscillating system of the second order. With the knowledge about the process behaviour, a basis for the controller synthesis is created, which will be discussed in more detail later. The behaviour of the lateral and vertical axis was carried out analogously. The result was a differential equation (2) of the second order:
(2)GPT2s=Ks2·T+s·2·d·T+1.Several step and ramp responses were recorded around the working point from real flights. The working point, in this case, is the stable position of an aircraft. No deflection in the longitudinal and lateral axes was found (0°). The small- and large-signal behaviour was an essential factor to rebuild a realistic model. Then, smaller jumps were recorded and analysed after to determine the process behaviour.While working out the physical behaviour of an aircraft in the air, the coupling of the axes to each other was noticed. For example, if the airframe was rolling around the longitudinal axis, a moment around the lateral axis was also generated. A coupling from the lateral axis to the longitudinal axis could not be demonstrated, which will be proven later. In order to react against these coupling effects, some more tests were also carried out in these areas and integrated into the controller algorithm. The coupling and decoupling structure of the lateral and longitudinal axes is shown in Figure5.Figure 5
Decoupling structure of the lateral and longitudinal axes. After initiating a left or a right turn flight, the nose of the airframe is dropping. The controllers for stabilization are marked in blue, the physical coupling of the system in red, and the corresponding decoupling in green.In Figure5, the lateral and longitudinal axes and their coupling are shown on the right side. If a coupled system exists, a decoupling controller can also be designed. With the knowledge of the complete process behaviour, a suitable control loop system can be then developed.APID controller structure was selected as the transfer function for the roll and pitch controllers. The decoupling system is a simple P-controller. The PID controller registers the advantage of controlling nonlinear systems and can be easily integrated into an embedded system. To implement the controller in the program code, the controller must be described mathematically first. The structure of a PID controller in the frequency domain is shown in Figure 6.Figure 6
Structure of thePID controller in the frequency domain. The controller is set using the parameters P, I, and D.The general notation of aPID controller applies the following equation:
(3)GPIDs=uses=KP+KIs+KD·s.For the implementation of the C code, the transfer function of thePID controller must be converted into a difference equation. To do this, the transfer function must be first transformed into the z area by using the shift rule (equation (4)) [36]:
(4)GPIDz=uzez=KP+KIz−1+KD·z−1z.This is followed by the retransformation into the time domain:(5)uk=uk−1+ek·KP+KI+KD+ek−1·−KP−2·KD+ek−2·KD.This equation can be implemented in the microcontroller. Here,ukrepresents the current controller output variable and uk−1 the preceding output variable. In order to ensure that the integral part of the regulator does not overflow and that the aircraft is not controllable in the worst case, an additional antiwindup limit was added.With the control algorithm and the implemented sensor technology, the control loop was closed for the individual airframe axes. The closed control loop is shown in Figure7.Figure 7
Structure of the closed control loop system. The IMU is shown on the right side in orange and measures the Euler angles every 30 ms. The pilot commands the set value with a commercial remote. The difference between the set value and the actual value is offered by the controller, which calculates itself a control signal to get the airframe to the desired position. The damper damps the own movement of the airframe, and the complete control system is also sensitive to disturbances such as wind gusts. The internal control algorithm is called “basic controller” and is framed in blue.With the conventional remote control, the pilot provides a command variable in the form of pulse width. This pulse width is detected by the receiver in the aircraft and transmitted to the microcontroller. The program code then allows converting the pulse width into an angle. For example, for a minimum/maximum joystick deflection to the left/right, an angular deflection for the roll controller of -50°/+50° is calculated.The minimum/maximum angle can be defined by the source code itself. The reference variable, thus specified, is compared to the angles of the IMU sensor and is passed on to the controller algorithm as a control difference. This controller is able to calculate a manipulated variable to guide the aircraft to the desired position. In this case, the basic controller includes a roll and pitch control, which ensures that the aircraft is stabilized in the air. Disturbances such as gusts should be compensated with this controller system. With this algorithm, the pilot can permanently set a command variable and his desired flight behaviour.After the implementation of the closed control loop, it was still necessary to define the controller parameters. The determination of these parameters can be performed by different methods. Due to the knowledge of the process behaviour, numerical optimization was used in this design in order to find the global minimum of a specially defined quality function. The quality function can be defined according to energy consumption, speed, and another behaviour. In our case, the focus was placed on fast control with as little overshoot as possible in the controlled variable. Overshoot can nevertheless occur due to external disturbances such as gusts. Therefore, a quadratic optimization method was used following equation (6) [36]:
(6)J=Ke·∫0Te2tdt+Ku·∫0Tu2tdt.Equation (6) describes the quality function, which is calculated from the integral of the control deviation (e) and the output variable (u). The parameters Ke and Ku represent the factors considering how much the quality of each part has weight. If the user wants to obtain smaller differences in the control deviation, the parameter Ke should be increased. This quality is minimized by numerical optimization. This means that the control deviation and output variable should be kept to a minimum. In most cases, these are contradictory statements. If the control deviation has to be reduced, more energy must be applied by the controller, which results in an increase in the output variable of the energy consumption.The numerical optimization for the roll control resulted in controller settings (see Table1).Table 1
Parameters of the controller by numerical optimization.
ParameterValueKP0.81KI0.33KD0.04In Figure8, the commissioning of the roll and pitch controllers is shown. In the simulation, these control parameters can be adapted to different flight scenarios. These parameters are then implemented in C code. By means of a ground station, the parameters can be adjusted afterwards and also during the flight. By simulating the closed control loop, the first control parameters could be calculated, which were subsequently tested in commissioning. The commissioning of the stabilization control is an essential step, which is the most important component of aircraft control. Figure 8 shows the control behaviour of the roll and pitch controllers.Figure 8
Behaviour of the roll and pitch controllers. In (a), the pilot changes the set value from -20° to +40°. The roll controller follows the command and tries to reach the desired position. Because of the coupling system, the pitch angle in (b) changes too and the airframe is dropping. The pitch controller and the decoupling controller are reacting to this and set the airframe in the right position.
(a)
Roll controller(b)
Pitch controllerThe dynamics of the aircraft is strongly dependent on the speed relative to the air of the airframe. In Figure8, the airspeed of the aircraft is 72 km/h. The airspeed is not yet regulated in the current state of the autopilot and must be controlled manually by the pilot. The commissioning of the basic controller according to Figure 7 has been carried out successfully. As already shown in Figure 5, there is coupling from the longitudinal axis to the lateral axis, but not the other way around. After the first test flights, a decoupling P-controller is implemented. In Figure 9, the controller behaviour is depicted.Figure 9
Behaviour of the roll and pitch controllers. During this time, the roll angle from (a) shows no deflection angle. In (b), the pilot changes the set value from 0° to -25°. The pitch controller is reacting to this command and reaches the commanded angle. While the airframe is flying, a left flight turns the pitch angle positive, which means that the pitch controller and the decoupling system are too strong. At 320 seconds, the airframe gets a command to fly upwards; the roll angle shows no deflection from this command.
(a)
Roll controller(b)
Pitch controllerIn a left or right curve, the pitch angle is deflected and must be corrected. If the pitch angle is deflected, the roll angle is not affected.In order to be able to control the airspeed, course, and altitude as well, the closed control loop of Figure7 must be extended. The desired multivariable control was implemented using a cascade control loop. In Figure 10, the extended control loop is shown as a cascade control loop.Figure 10
Development of the cascade control loop. To control the navigation course, airspeed, altitude, and Euler angles, an IMU, GNSS, and pitot tube sensor are needed. On the left side, the navigation system or the pilot commands the course the airframe should fly. The control deviation is transferred to the autopilot which calculates the needed roll angle to reach the desired course. The autopilot also commands the airspeed and required altitude. The commands were compared to the sensor data. The internal basic controller in the blue dashed frame ensures that the airframe reaches the final position.Before describing the cascade regulation in more detail, it is necessary to deal with a flight route and main elements that have to be conducted. The user can plan the desired flight route in advance using map software. Depending on the software, different parameters can be configured for the flight. The default output parameters are the geographical points with the corresponding altitude at which the airframe should fly to. The points are stored as a list on an SD card and connected to the microcontroller before flying. The navigation system reads the SD card and stores the GNSS list in the flash of the microcontroller. If the navigation control is switched on, the module calculates the course to be flown to reach the next navigation point. In addition, the navigation system calculates the distance of the aircraft to the next point in real time. If the aircraft is in a defined epsilon area, the target is considered to be reached and the next position is approached. In case of emergency, the pilot can set a different course during a flight and has priority over the navigation system.The desired course is thus set by the pilot or by the navigation system as a command variable and then compared with the current course of the aircraft. The difference in the course is passed on to the autopilot, which calculates to what extent the aileron and rudder must be deflected to bring the aircraft on the desired course. The autopilot also calculates the amount of airspeed required to fly the aircraft efficiently. The output of the autopilot is given by 4 command variables: the airspeed, roll, pitch, and heading angle of the aircraft. The internal basic controller from Figure7 includes the airspeed and heading control after the expansion. To control these effects, a GNSS, pitot tube, and IMU sensor are needed.When designing the cascade control systems, care was taken to ensure that the internal control loops are designed quickly, while the external control loops ensure stationary accuracy. This rule must be observed to keep the overall system controllable and stable. If the internal control is too slow, the desired control quality will not be achieved. The course controller is aP-controller and the altitude controller a PI-regulation. In addition, it is necessary to pay attention to not have multiple integral parts in the controller loops. For example, the altitude controller should provide the control variable for the pitch controller. The pitch controller will then adjust the elevator to cause movement around the lateral axis. The process is of the second order and therefore capable of oscillation. In order to not stimulate the process of oscillation, the integral component in the pitch controller is deleted and, subsequently, implemented in the altitude controller.The course and altitude controls were the first to be put into operation. The speed to be flown was still specified by the pilot and in most cases reached 65 km/h. As this is an oscillation system, it was decided to not operate several control loops at the same time. Regarding the computing time for the calculation of the course and the required flight altitude, approx. 540 microseconds was measured. For the first tests, the airframe should fly a square, which defines four navigation points. The desired altitude is about 360 absolute heights. The test field is 300 meters high that represents a relative height of 60 meters. In Figure11, the square with the four navigation points is shown. The commanded way between these four points is also drawn.Figure 11
The desired route and the navigation points (red) the airframe has to reach (a). If the airframe attains the epsilon area (green), the navigation unit commands to fly to the next destination. The flown route is shown in black. In (b), the commanded course (blue) and the flown curse (red) are contrasted. The planned altitude (blue) and the actual altitude (red) are shown.
(a)
GNSS route(b)
Direction controllerThe cascade control loop is able to control the airframe from one navigation point to another. Every time the airframe reaches the epsilon area of the current destination, the navigation system calls the next GNSS point the airframe has to be approached. If the airframe finishes the route, the user has two possibilities: (i) repeating the route or (ii) flying back to the home spot. The user himself generates the home spot. The epsilon environment for this measurement is 15 meters and can be modified in the software. When planning the flight route to be conducted, the minimum and maximum possible curve radius must be taken into account so that the aircraft can reach the individual points. If a navigation point is not reached, the aircraft is turned around and tries to fly this point again. To reduce the turn radius and to fly smaller turns, the rudder can be mixed with the roll controller. The rudder is additionally operated with each turn.In the current example, it is also noticeable in Figure11(a) that a constant wind from the northeast flows onto the aircraft and deflects it. The control algorithm reacts to this and adjusts its control variables accordingly. In Figure 11(b), it can be noted that when the reference variable changes, the aircraft has reached its stationary final value after approx. 2.5 seconds and is on the desired course. Due to the mentioned disturbances caused by wind influences, there are minimal overshoots in control behaviour. In order to reach the desired predetermined flight altitude, the altitude controller influences the pitch controller, which adjusts the elevator. This adjustment alone is not sufficient as shown in Figure 12.Figure 12
Altitude controller with the rudder as the only actuator. To control the altitude, the rudder itself is not enough; therefore, the airspeed has to be controlled, and if the airframe has to rise, the airspeed should not break down.This is because the airspeed of the aircraft has a significant influence on the lift. As already told, the wind influences cause larger jumps in the airspeed. If the aircraft is too fast, the altitude will automatically increase when the aircraft is in a neutral position. In order to be able to control the altitude reliably and precisely, the airspeed must also be controlled.


## 4. Conclusion, Challenges, and Future Research

In this paper, hardware design and a control system for a fixed-wing aircraft with a span of 1.6 m were developed. A high-quality sensor system was of utmost importance for the selection. The subsequent implementation of the components was performed on the embedded system in the programming language “C”. Subsequently, process identification of the fixed-wing aircraft was carried out and a simulation was created on this basis. Thereby, a coupling of the systems was identified and a subsequent decoupling was developed. A stabilization control of the longitudinal and lateral axes was developed for the aircraft. By means of quadratic and numerical optimization, the emphasis was placed on the smallest possible deviation in the control difference and manipulated variable. The requiredPID control algorithm was implemented in the program code, and the control parameters used can be adapted to the external conditions in real time. After successful commissioning, the implemented control system was extended to a cascade control system to enable multivariable control. Thus, the foundation for the control of heading, altitude, and airspeed was laid. Flying of defined routes was successfully tested, and the behaviour of the switched-on controllers was investigated in the laboratory.The commissioning of the airspeed control is still pending for future investigations. This control system should also enable the desired flight altitude to be set even better. In the future, it should be possible to test the controller algorithm in other aircrafts and integrate additional sensors such as Radar and Lidar into the aircraft. Additionally, we want to change the GNSS sensor to a measuring unit with an external antenna and an internal battery. The battery ensures that the sensor can be used immediately at the start-up. Subsequent tests will be performed to prove an increased quality of the sensor data. The main advantages of the designed autopilot are the low costs, the high quality of the hardware, the possibility to adjust the control characteristics in real time, and the communication between the pilot and the aircraft via a ground control station. The effectiveness of the system was validated during autonomous flights of a fixed-wing aircraft and further optimized in the laboratory.



---

*Source: 1360702-2020-06-16.xml*