Build Log Part 5: From First Test to Future Flight
There is something different about seeing a machine you designed actually begin to work. Throughout this project, the UAV existed in different…
Continue reading
There is something strange about testing an aircraft that does not physically exist yet.
Normally, when we think about flight testing, we imagine a real aircraft taking off. But during our UAV project, I started to realise that some of the most important tests can happen before the aircraft ever leaves the ground.
In Part 1, we focused on designing the physical UAV and understanding its structure.
In Part 2, we explored how sensors, software, electronics and control systems could work together to make the aircraft respond to its environment.
The next question was naturally:
Can we test all of this before the real UAV is ready?
This led us towards simulation.
Instead of immediately building the aircraft and hoping everything worked, we wanted to understand how the system might behave in a virtual environment.
For me, this stage became an important lesson:
Simulation does not replace the real world. It gives us a safer and more controlled way to understand it before we enter it.
Contents
1. From Design to Behaviour
In Part 1, our digital model mainly answered physical questions.
Would the components fit? Where would the battery sit? How would the centre of gravity change?
But a physical model does not automatically tell us how an aircraft will behave.
A UAV can look perfectly balanced in CAD and still behave badly in flight. It might respond too slowly, rotate unexpectedly, oscillate, struggle to maintain altitude or react too aggressively.
This made me realise that we need to understand two different things:
What does the aircraft look like?
and
How does the aircraft behave?
CAD helps answer the first question, while simulation helps investigate the second.

A model can tell us that the aircraft exists. A simulation can help us explore what happens when that aircraft starts moving.
2. Why Physical Testing Comes Later
It is tempting to think that the fastest way to learn how a UAV behaves is simply to build it and fly it.
In reality, that can be risky.
A physical aircraft contains many interconnected systems. A software problem could affect the motors, a control-system problem could make the aircraft unstable, and a wiring mistake could damage electronics.
Even a small change in weight can influence the flight characteristics.
Simulation gives us another option.
We can create a virtual version of the aircraft and test different conditions without putting the physical hardware at risk.

For example, we could investigate what happens when:
These tests cannot perfectly reproduce reality, but they can help us understand the basic behaviour of the system.
That makes simulation a useful step between designing the aircraft and testing it physically.
3. Creating a Virtual UAV
The first step in simulation is creating a representation of the aircraft.
The virtual UAV does not necessarily need to look exactly like the physical aircraft. What matters is that its important characteristics are represented.
These can include:
Each characteristic affects the way the aircraft behaves.

For example, the mass affects how much force is required to accelerate the UAV. The position of the mass affects how it rotates, while the motor positions determine how their forces influence the aircraft.
Instead of physically moving a real UAV, the computer calculates what should happen to the virtual one.
That is what makes simulation possible.
4. Giving the Aircraft Physics
A virtual model by itself is not enough.
If we simply create a three-dimensional UAV inside a computer, it will not automatically behave like a real aircraft. We need to give the model physics.
This means representing forces and motion mathematically.
One basic relationship is:
F = ma
where:
This shows that if the mass of the UAV increases, more force is required to produce the same acceleration.
The aircraft also has to deal with gravity.
The gravitational force can be represented as:
W = mg
where:
For a hovering UAV, the total upward thrust must approximately balance its weight:
Total Thrust ≈ Weight

If the virtual motors cannot generate enough thrust, the aircraft should not magically hover.
The simulation needs to follow the physical rules that govern the real aircraft. That is what makes the virtual environment useful.
5. Simulating the Motors
The motors are another important part of the simulation.
A UAV has multiple motors positioned around the aircraft. Each motor contributes to the total force and can also influence the aircraft’s rotation.
Suppose the aircraft needs to rotate slightly to the right. The controller can change the relative thrust produced by different motors. The difference in motor thrust creates a rotational effect.
In a simplified form:
Motor Speed → Propeller Rotation → Thrust → Aircraft Movement
The real relationship is more complicated. Propeller size, air density, motor characteristics and electrical power can all affect the result.
However, even a simplified motor model can help us understand the basic connection between motor commands and aircraft movement.
This also connects directly to Part 2.
The software sends a command.
The virtual motor responds.
The virtual aircraft moves.
The sensors measure the movement.
The controller responds again.
The feedback loop continues.

6. Understanding the Flight Environment
An aircraft does not operate in a perfectly controlled environment.
Even a small UAV can experience disturbances such as wind or changes caused by its own movement.
A controller that works perfectly in an ideal environment may behave differently when disturbances are introduced.
A useful simulation should therefore allow us to change the environment.
For example, we can introduce:
The goal is not to create a perfect virtual world.
The goal is to create a useful environment where we can investigate how the system responds when conditions are not perfect.

This is important because real engineering rarely happens under perfect conditions.
7. Testing the Flight Controller
Once the virtual aircraft and environment are established, we can test the control system.
The flight controller has a basic responsibility:
Keep the aircraft behaving as intended.
Imagine that the UAV is commanded to remain level.
The system has a desired orientation. The sensors provide the actual orientation. The controller compares the two.
If there is a difference, it calculates a correction. The motor commands are adjusted, the aircraft responds, and the sensors measure the new state.
The process repeats.

This is the same feedback concept we explored in Part 2, but simulation allows us to observe it more clearly.
We can see how quickly the system responds, whether it returns to the desired condition and whether the response is stable.
This changes simulation from simply watching a virtual aircraft move into an actual engineering experiment.
8. Introducing Disturbances
One of the most useful parts of simulation is that we can intentionally create problems.
Why would we want to make the UAV unstable?
Because we need to understand how the system responds when things go wrong.
Imagine the UAV is hovering and suddenly experiences a disturbance that causes it to tilt.
The controller detects the change and attempts to correct it.
The response could be too weak, causing the UAV to recover slowly.
It could be too strong, causing the UAV to overshoot.
Or it could be well balanced, allowing the aircraft to return smoothly to its original condition.

This gives us a way to compare different controller settings.
Instead of simply asking:
“Does it work?”
we can ask:
These questions help us study the quality of the control system rather than simply its existence.
9. Measuring the Response
Simulation becomes more useful when we can measure the results.
A visual animation can show that the aircraft moved, but numbers can tell us much more.
We can record:
These values can then be plotted over time.

For example, if the UAV is commanded to maintain a certain angle, we can compare the desired angle with the actual angle.
The difference between them represents the error.
A good response might show the error decreasing quickly and settling near zero.
A poorly tuned response might show large oscillations.
Something that looks like:
“The UAV became stable.”
can therefore be represented by measurements and graphs.
The numbers allow us to understand what the aircraft is doing instead of relying only on what it looks like.
10. Comparing Different Control Approaches
Once the system can be simulated, we can compare different approaches.
For example, we can change controller parameters and run the same test again.
The physical aircraft remains the same. The environment and disturbance can also remain the same.
Only the controller changes.

This creates a fair comparison.
We can investigate:
This type of testing would be difficult to perform randomly on a physical aircraft.
Simulation allows us to repeat the same experiment many times.
That repeatability is important because if the conditions change during every physical test, it becomes harder to know exactly why the result changed.
11. From Simulation to Reality
At this point, it might seem that simulation solves everything.
It does not.
A simulation is still a model, while a real UAV is much more complicated.
The real motors will not behave exactly like the mathematical model. Sensors will contain noise, the frame may vibrate, battery voltage will change, and wind will not behave exactly as expected.
This creates what can be called the sim-to-real gap.
A controller that performs perfectly in simulation may not behave exactly the same way on physical hardware.
That does not make simulation useless.
Instead, it shows why simulation and physical testing need to work together.
The goal is not:
Simulation OR Reality
It is:
Simulation → Physical Testing → Comparison → Improvement

If the simulation predicts one behaviour and the real aircraft produces another, that difference becomes useful information.
It may show that the motor model was too simple, the sensor behaviour was not represented accurately, vibration affected the measurements, or the physical mass distribution was different.
The difference between simulation and reality can therefore become another engineering problem to investigate.
12. What I Learned
The biggest lesson from this stage was that testing does not have to begin with physical hardware.
A computer can become a kind of laboratory.
It can allow us to create a virtual aircraft, introduce physical rules, simulate motors, test controllers and observe the results.
The process can be simplified as:
Physical Design ↓ Mathematical Model ↓ Virtual Aircraft ↓ Simulation ↓ Control Testing ↓ Data Analysis ↓ Physical Prototype ↓ Real-World Testing
Each stage informs the next.

The CAD model gives us the physical dimensions. The mathematical model gives us a way to represent the aircraft. The simulation lets us investigate its behaviour, while the control system determines how it responds.
The physical prototype then allows us to compare those predictions with reality.
This changed how I think about testing.
Testing is not only something that happens after a machine has been built.
Testing can begin while the machine still exists only as an idea and a set of equations.
13. Where I Want to Go Next
After exploring simulation, another major question remains.
A virtual UAV can be tested endlessly on a computer.
But eventually, the real aircraft has to leave the screen.
The motors need to spin. The sensors need to produce real measurements. The flight controller needs to process real data. The structure needs to withstand real forces.
And the control system needs to work in an environment that cannot be completely predicted.
This creates the next challenge:
How do we move from a simulated aircraft to a physical aircraft?

How should the electronics be integrated?
How should the sensors be mounted?
How can we make sure the real measurements match what the software expects?
How do we safely test the motors before flight?
And when the real UAV behaves differently from the simulation, how do we find out why?
The journey has now moved from:
Designing the aircraft
to
Understanding its systems
to
Predicting its behaviour.
The next step is to bring those ideas into the physical world.
Because eventually, the most important test is not whether the UAV can fly inside a simulation.
It is whether the engineering decisions we made on a computer can survive contact with reality.
And that is where the real build begins.
