Topic 1: Safety and flight fundamentals
Summary of Topic 1: cyber threats to drones, Thai drone flight law, UAV types, quadcopter anatomy, the Flight Controller and PID control principles
This content on programming artificial intelligence (AI) on drones, robots and advanced IoT devices aims to give readers the essential foundational understanding before moving on to drone control programming in the next topic. This document was compiled from two main sources: the actual lecture slides of Dr. Kritsanai Charoenchit, a Tech Business Development Expert, who compiled the original content of Module 01, and Top from T Maker, who compiled the original content of Module 02 on unmanned aircraft architecture, together with external academic and drone-industry sources used to expand on each topic so that readers can review or prepare in advance.
The defence industry is one of the country's new target industries for national security, known as S-Curve 11, which is one of the twelve target industries promoted by the Thai government to drive the economy. These are divided into five existing value-adding industries, five New S-Curve industries that raise value further, and two additional industries, which include the defence industry. The missions of the defence industry cover four main areas: disaster prevention (Disaster Prevention & Response), safety of life and property (Life & Property Safety), national security (National Security), surveillance of borders and strategic areas, support for military affairs, and research and development of defence technology. This is important context explaining why knowledge of drone cybersecurity and aerodynamics matters to this industry.
Module 01: Cybersecurity and aviation regulations
The first module of this topic begins by instilling safety awareness before readers handle real equipment, in line with approaches to training in unmanned aviation technology in a security context, which typically place understanding of threats before hands-on practice. The content of this module is divided into four sub-sections: cyber attacks related to aviation, real case studies, laws and security regulations relating to drones, and a sharing of first-hand experience from the lecturer.
Forms of cyber threats to drones
Technically, modern drones are devices that rely on wireless communication and satellite signals at the heart of their operation, which opens them to many forms of attack. The most common is spoofing or jamming satellite signals, known as GPS spoofing and GPS jamming, which causes the drone to calculate its position incorrectly or lose navigation completely. There is now a large body of research developing systems that detect this type of attack in real time using Machine Learning techniques, because such threats are difficult to detect by eye and can cause serious damage if they affect drones used in critical missions (Perimeterwatch, Cybersecurity challenges of military drones)
Besides interference with navigation signals, there are three other types of attack worth knowing. The second type is interference with or seizure of the control link (command-link hijacking), in which an attacker can take control of the drone in place of the real remote pilot if the signal encryption is not sufficiently robust. The third type is the deauthentication attack, which works against drones controlled over a Wi-Fi network, especially low-cost consumer drones. The final type is malware implanted in the software or firmware supply chain (supply-chain malware), which may be embedded at the manufacturing stage or during software updates before the device reaches the actual user. Figure 2 summarises these four forms of threat in a diagram to show their relationship to the drone as their common target.
Figure 2: The four main types of cyber threat to drone systems
The lecturer's actual slides grouped these threats from a broader perspective, dividing them into two main axes. The first axis is “cyber attacks on drone systems”, covering GPS Spoofing/Jamming (spoofing or jamming navigation signals), Signal Hijacking (seizing control of command signals) and Data Intercept (intercepting image and coordinate data). The second axis is “the use of drones as attack weapons”, a perspective that differs from cyber threats as such but is a threat that security agencies must monitor alongside them, namely drones carrying hazardous materials, airspace incursions for surveillance, and Drone Swarm Attacks, which use large numbers of drones to attack a target simultaneously, as shown in Figure 3. This two-axis framework helps readers understand that a drone can be both a “target of attack” and a “tool of the attacker” at the same time.
Figure 3: The two-axis framework from the actual Module 01 lecture slides, dividing threats into attacks on drone systems and the use of drones as attack weapons
Real case studies
This case-study section presents real events to build empirical understanding. The case most frequently cited in the drone security field is the incident in August 2018, when there was an attempt to assassinate President Nicolás Maduro of Venezuela using DJI Matrice 600 commercial drones carrying explosives that flew close to the speaking platform during a military parade. Although the attack did not achieve its aim, the incident became a turning point that led security agencies worldwide to take seriously the threat of commercial drones modified into weapons (Security Info Watch, Maduro assassination attempt highlights drone threats)
Another recent case study directly relevant to electronic warfare is the situation in the Russia–Ukraine war, in which both sides have used GPS spoofing and jamming techniques extensively to degrade the effectiveness of the opposing side's reconnaissance and attack drones. It has become a key reference case for understanding modern electronic warfare, in which drones have taken on the role of primary weapons on the battlefield (TechRxiv, The Rise of GPS Spoofing Attacks on Drones in the Russia-Ukraine War) Both cases show that cybersecurity knowledge is no longer a remote concern for drone practitioners, especially in the context of the defence industry, which needs personnel with direct understanding of this field.
Beyond the threat-focused case studies above, the actual lecture slides also present another kind of case study showing the positive role of drones in disaster missions, which aligns directly with the defence industry's Disaster Prevention & Response mission mentioned earlier. They give examples of three roles for drones in disaster relief missions. The first is search and rescue (Search & Rescue), using drones to survey areas that responders find difficult to reach in order to locate victims. The second is damage assessment (Damage Assessment), through aerial photography and mapping to assess the overall situation. The third is acting as a communications relay (Emergency Communication) to transmit signals and coordinates in areas where the main communications network has failed, as in the real photograph from a rescue mission in Figure 4, which shows responders preparing a drone before a night-time survey flight.
Figure 4: Three roles of drones in disaster relief missions from the actual lecture slides: search and rescue, damage assessment, and acting as a communications relay
Drone flight laws and regulations in Thailand
The legal section is essential knowledge that every reader should have before flying a drone for real. There are two main agencies regulating drone flights in Thailand: the Office of the National Broadcasting and Telecommunications Commission, or NBTC, which oversees radio frequency authorisation, and the Civil Aviation Authority of Thailand, or CAAT, which oversees remote pilot registration, as shown in Figure 5, a sample slide on laws and regulations from the actual lecture. The rules require that every drone fitted with a camera be registered with both agencies, as must drones weighing more than 2 kg, while drones weighing more than 25 kg require additional ministerial-level permission. Drones without a camera weighing no more than 250 g are exempt from registration. In addition to registering the drone owner and the remote pilot, the remote pilot must also hold third-party insurance, as stated on the slide (Legardy, Summary of drone law in Thailand)
Figure 5: Thailand's two main regulatory agencies, NBTC and CAAT, with registration and insurance requirements
Regarding operational limitations, the law sets a flight ceiling of no more than 90 m above ground level, requires a distance of at least 30 to 50 m from people or buildings depending on the drone's weight, prohibits flying over urban or densely populated areas, requires flight within visual range so that the drone can be seen at all times, known as Visual Line of Sight, and permits flight only during the daytime from sunrise to sunset. Flying is also prohibited within a 9 km radius of an airport and within a radius of up to 19 km around security-sensitive areas such as palaces, military zones, prisons and police stations, unless written permission has been obtained from the relevant authority. Those who violate these rules face imprisonment of up to 1 year, a fine of up to 40,000 baht, or both (Civil Aviation Authority of Thailand, Quick menu for unmanned aircraft; Legardy, Summary of drone law in Thailand)
The actual lecture slides also show concrete examples of No Fly Zones, including “No Drone Zone” warning signs installed near airports and an aerial photograph of Pattaya clearly labelled “No Fly Zone”, because it is a densely populated area close to an airport flight path. The lecturer also showed a map of restricted zones (Red Zones) across Thailand, displayed as numerous red areas covering cities, airports and security areas, together with photographs of example areas that remote pilots should avoid, including high-rise urban areas such as Bangkok, important historic sites such as the Grand Palace, and steep hilly terrain. The key caution the lecturer emphasised is that areas suitable for flying or high-resolution photographic mapping should be open areas without obstacles or signal interference, because obstacles can cause the control signal to drop out and be lost, making the drone difficult to control, as shown in Figure 6.
Figure 6: Map of Thailand's restricted zones (Red Zones) and examples of urban areas, historic sites and steep mountains to avoid, as recommended by the lecturer
A thorough understanding of these legal frameworks is therefore a prerequisite before readers actually control a drone in practice.
Module 02: Unmanned system architecture and aerodynamics
Having laid the foundations of safety and law, the second module takes readers into the engineering dimension, starting with an overview of the types of unmanned aircraft before looking in depth at the physical structure of the four-rotor drone and extending to the aerodynamic calculations needed to design and operate drones safely. This section is based mainly on the lecture slides “Unmanned Aircraft Architecture and Basic Operating Principles” (UAV Architecture & Principles of Drone) by Top from T Maker.
Types of unmanned aircraft (Type of UAV)
Before looking in depth at the four-rotor drone, the main equipment of this content, the lecturer introduced an overview of the various forms of unmanned aircraft in use today: fixed wing, which resembles a small aeroplane and is used for long-range reconnaissance missions, for example drones of the US Air Force; single rotor, which has only one main rotor like a small helicopter; and bicopter, which uses two rotors placed opposite each other, as shown in Figure 7. Comparing this diversity of drone structures helps readers understand why the four-rotor drone, or Quadcopter, has become the most widely used standard: its four fixed motors can balance torque by themselves without needing complex mechanisms, unlike a single rotor, which requires a tail rotor to counterbalance it. This makes the four-rotor drone more stable, affordable and easier to control, from toy drones to professional drones (U.S. Air Force website; velos-rotors.com; d-botix.com)
Figure 7: Three common forms of unmanned aircraft: fixed wing, single rotor and bicopter
Structure and main components of a drone
A four-rotor drone, or quadcopter, consists of seven main components working together. It starts with the frame, the main structure that holds all the components together and determines the size of propellers that can be used. Next come four brushless motors that convert electrical energy into rotational force. Motor power is often specified by a kV value: motors with a low kV give high torque, suitable for carrying loads, while motors with a high kV spin fast, suitable for speed and racing. The propeller attached to each motor converts rotational force into lift, and larger or heavier propellers require correspondingly more torque from the motor (Oscar Liang, Quadcopter Hardware Overview)
The component that directly controls each motor is the Electronic Speed Controller, or ESC, which receives command signals from the Flight Controller and converts them into electrical pulses to set the rotational speed of each motor precisely. The Flight Controller itself is the brain of the drone, containing motion sensors, both gyroscope and accelerometer, to process the flight attitude in real time and command the ESCs to adjust each motor's speed appropriately. There is also a Receiver, which receives commands from the remote pilot's transmitter and passes them to the Flight Controller for processing, and a lithium polymer (LiPo) battery, the main power source, whose properties are specified by voltage, capacity in milliampere-hours (mAh) and discharge rate, or C-rating. The relationships among all these components are shown in Figure 8.
Figure 8: The seven main components of a four-rotor drone and how they work together
Besides the standard shape, FPV racing drone frames come in a variety of sub-shapes designed for different purposes, as shown in the actual lecture slides: True X, which is symmetrical and the most popular; Box, which is very strong; Hybrid, which combines the strengths of several shapes; H-Shaped; Stretched X, which lengthens the frame for stability at high speed; Wide X, which leaves more space in the centre for mounting a camera; and Deadcat, which bends the front arms down so the propellers do not appear in the camera's frame, as shown in Figure 9. Choosing a suitable frame shape is therefore another engineering factor that drone designers must consider alongside the seven main components (FPV24.com)
Figure 9: Seven common FPV drone frame shapes, each designed to balance stability, speed and equipment mounting space
The flight control system and real hardware connections
To show more concretely how the seven components are connected, the actual lecture slides present a wiring diagram of the Flight Controller used in the training kit, showing the connection points for the Camera, the video transmitter module (VTX), the GPS module, the Receiver, the warning Buzzer, status LEDs and a 3S to 6S lithium polymer battery. The ESC signal wires from the motors at all four corners connect directly to the central circuit board where the Flight Controller is located, as shown in Figure 10. This diagram helps readers understand that, in practice, the seven components described above depend on accurate and correct routing of power and signal wires before moving on to actual assembly (dronewolf.darkwolf.io)
Figure 10: Actual wiring diagram of the Flight Controller showing the connection points for the camera, VTX, GPS, receiver and battery
Aerodynamic calculations
The computational knowledge set out in this topic has three main parts. The first is the thrust-to-weight ratio: TWR = total thrust / total weight, where both values must be forces in the same unit. As a hypothetical example, a drone with a mass of 0.5 kg has a weight of 4.905 N using g = 9.81 m/s². If the propulsion set gives a maximum thrust of 9.81 N under those test conditions, then TWR = 2. Level hover in the model requires thrust equal to the weight, or half of the maximum thrust in the example, but this does not mean the throttle command or electrical power is half, because the relationship depends on the motor, propeller and voltage combination. A TWR close to 1 leaves little reserve thrust, and a value of 2 alone does not confirm stability or suitability for a mission. Read about the limitations and unit checks in the design and system integration lesson
The second part is estimating flight time from the usable allocated energy divided by the average power of the whole aircraft: t [h] ≈ Eusable [Wh] / Pavg [W], where P = VI and energy must integrate power over time, according to OpenStax, Electrical Energy and Power As a hypothetical example, a 22.2 V × 5 Ah battery has a nominal energy of 111 Wh. If we assume 80%, or 88.8 Wh, can be allocated and the average power is 300 W, the result is 0.296 h, or 17.76 minutes. The 80% value is an assumption of the problem, not a safe depth of discharge common to all batteries, and 170 W/kg is not a constant for drones in general; propulsion data and power measured in a comparable mission must be used. Wind, mass, flight pattern, temperature and battery age all have an effect, so a single derating percentage should not be used for all conditions. See the unit tables, examples from logs and limitations in core lesson F05: energy and flight time
The third part is assessing payload capacity, which requires considering several constraints together: the total mass according to the manual, the CG envelope, the strength of the mounting points, reserve thrust and the energy for the mission. Subtracting the aircraft weight from the maximum thrust gives only the force margin under test conditions; it still cannot be used as the permitted payload mass, and a TWR of 2 does not guarantee safe flight. The actual equipment and conditions must be checked according to the manufacturer's procedures. See the examples in the payload and centre of gravity lesson The module closes with the principles of flight direction control, which rely on four main axes: throttle for controlling climb and descent, roll for tilting left and right, pitch for nosing down and up to move forward and backward, and yaw for rotating about the vertical axis. All of these result from the Flight Controller setting the motors to unequal speeds at the required moments.
Assembling the training kit and setup/tuning
Readers can put the preceding theory into practice by assembling a training drone kit themselves. The kit used in this content is the SimpleFly Learning Kit, hardware designed specifically for learning. It consists of a dual-joystick control board using an ESP32 chip as the main processor, a smaller circuit board for connections, and a set of motors with propellers that are assembled together as the final step, as shown in Figure 11. Seeing and handling the real hardware used in training helps readers concretely connect the earlier theory of drone structure with the equipment in front of them.
Figure 11: SimpleFly Learning Kit training hardware used in the practical workshop, from the joystick control board and connection circuit board to the motor and propeller set
The general assembly sequence starts by fixing the frame as the base, mounting the motors and ESCs on each arm, then installing the Flight Controller in the centre of the body, routing the power and signal wires to connect all components according to the previously learned diagram, and finally inserting the battery and fitting the propellers as the last step.
Once assembly is complete, the setup and tuning stage begins. This starts with calibrating the accelerometer and gyroscope sensors so that the drone's attitude is read accurately, along with calibrating the ESC throttle range to match the signals sent from the transmitter. The next step, equally important, is the initial PID setup, which is the heart of control that lets the drone fly steadily and respond as the remote pilot intends. A PID control system works as a feedback loop that takes the desired position or angle, compares it with the actual value measured by the IMU sensor to calculate the Error, and then passes it to the PID controller to compute the appropriate command for the ESCs and motors, before looping back to measure the result again continuously, as shown in Figure 12.
Figure 12: The feedback loop of the PID control system used in drone tuning
Mathematically, Figure 13 from the slides explains PID conceptually: P varies with the current error, I varies with the integral of the error over time, and D varies with the rate of change of the error. The sum helps in understanding the feedback loop, but a block diagram alone is not sufficient for writing drone control code that can actually fly. The sampling interval, units, filters, command limits, anti-windup and allocation of commands to the motors must also be defined. Real systems may compute D from the measured value to reduce derivative kick, and have nested position, attitude and rate control loops. Read PX4 Controller Diagrams , which explains the structure of the rate controller, filtering, saturation and control allocation (main documentation checked 26 September B.E. 2569 (2026); the firmware version must be matched before use), instead of interpreting this figure as ready-to-fly code
Figure 13: Mathematical block diagram of the PID control system showing the calculation formulas of the P, I and D controllers before they are summed into a command sent to the motors
The three variables of the PID system have clearly different functions. P, or Proportional, determines how strongly the system responds to a given amount of error, and therefore sets the overall responsiveness. I, or Integral, continuously accumulates any remaining error to correct long-term accumulated error, known as drift. D, or Derivative, considers the rate of change of the error to damp and reduce oscillation or jerkiness that may result from setting P too high. The general practice is to tune P first until the drone flies reasonably steadily, then gradually tune I and D to eliminate any remaining oscillation or residual error (Oscar Liang, FPV Drone PID Explained) The final setup step is binding the receiver to the remote pilot's transmitter, to ensure that every command from the remote pilot's hands reaches the drone correctly and without abnormal latency.
Drone control competition workshop
After assembling and tuning the drone, readers can put all their skills to a real test in a Workshop competition on Racing-style drone control missions. This is a practical assessment covering both understanding of aerodynamic principles and the precision of PID tuning, so the activity serves as the practical conclusion of this topic.
Conclusion
Overall, this topic lays a foundation of knowledge in three systematically linked layers. It begins with cybersecurity awareness and the legal framework that must be observed before touching real equipment, which the actual lecture slides of Dr. Kritsanai Charoenchit reinforced with a two-axis framework of threats and concrete examples of restricted areas, as well as a positive case study of using drones for disaster relief that links directly to the missions of the defence industry. This is followed by engineering understanding of the types of unmanned aircraft, their structure and the aerodynamic calculations needed to design drones and assess their capabilities, which Top from T Maker expanded on with real hardware connection diagrams and a mathematical block diagram of the PID system. It closes with practical skills, including assembling the SimpleFly Learning Kit, tuning and flight control. All of this is the necessary foundation before readers move on to programming autonomous flight control and applying artificial intelligence with drones in Topic 2.
Bibliography
-
Perimeterwatch. (n.d.). Cybersecurity Challenges and Defense Strategies for Military Drones. Medium. Retrieved from https://medium.com/@Perimeterwatch/cybersecurity-challenges-and-defense-strategies-for-military-drones-2373aadd67e3
-
TechRxiv. (n.d.). The Rise of GPS Spoofing Attacks on Drones in the Russia-Ukraine War. Retrieved from https://www.techrxiv.org/doi/full/10.36227/techrxiv.175203757.71749390/v1
-
Security Info Watch. (2018). Maduro assassination attempt highlights drone threats. Retrieved from https://www.securityinfowatch.com/home/article/12424641/maduro-assassination-attempt-highlights-drone-threats
-
Legardy. (n.d.). Drone law: drone flight permits, latest update. Retrieved from https://legardy.com/blogs/drone-laws-in-thailand
-
Civil Aviation Authority of Thailand (CAAT). (n.d.). Quick menu for unmanned aircraft (drones). Retrieved from https://www.caat.or.th/qa-drone-license/
-
Fly Eye. (n.d.). Thrust-to-Weight Ratio Calculator for Drones. Retrieved from https://www.flyeye.io/drone-calculators-thrust-to-weight-ratio/
-
Liang, O. (n.d.). Quadcopter Hardware Overview – Every Component Explained. Oscar Liang. Retrieved from https://oscarliang.com/quadcopter-hardware-overview/
-
Liang, O. (n.d.). FPV Drone PID Explained – Mastering Flight Performance through PID Tuning. Oscar Liang. Retrieved from https://oscarliang.com/pid/
-
Omni Calculator. (n.d.). Drone Flight Time Calculator. Retrieved from https://www.omnicalculator.com/other/drone-flight-time
-
FPV24.com. (n.d.). Common FPV Frame Shapes. Retrieved from https://www.fpv24.com (cited in the Module 02 Workshop slides by Top, T Maker)
-
DarkWolf. (n.d.). Flight Controller Wiring Diagram. Retrieved from https://dronewolf.darkwolf.io/ (cited in the Module 02 Workshop slides by Top, T Maker)
-
University of North Carolina at Charlotte, College of Engineering. (n.d.). PID Control Block Diagram, Senior Design Program. Retrieved from https://engineering.charlotte.edu/academics/senior-design-program/ (cited in the Module 02 Workshop slides by Top, T Maker; not a document confirming a flight controller implementation)
-
OpenStax. University Physics Volume 2, Electrical Energy and Power. Checked 26 September B.E. 2569 (2026)
-
PX4. Controller Diagrams, main. Checked 26 September B.E. 2569 (2026)
Note: Content taken from the original course schedule file (module topics, time slots and activity formats) does not cite external sources. Content and illustrations identified as coming from the “actual lecture slides” (Figures 3, 4, 5, 6, 7, 9, 10, 11, 13) were copied and edited directly from the actual presentation files of the module lecturers, namely Module 01 Overview & Cybersecurity and the Module 02 Workshop by Top (T Maker). Figure 12 is a mathematical diagram that the lecturer cited from an external source in the same slides. Other in-depth explanations expanding on those topics cite external sources as indicated in the content and the bibliography above.