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
Core Theme: Aerospace Engineering, Simulation, Avionics & Robotics

When I think about aerospace engineering, I often imagine aircraft, rockets, satellites and other complex machines operating in the real world.
However, before a physical aerospace system can fly or operate, a large amount of engineering work happens inside a computer.
An idea can begin as a simple concept.
It can then become a mathematical model.
The mathematical model can become a simulation.
The simulation can lead to software.
The software can run on electronic hardware.
That hardware can control a physical actuator.
The actuator can create mechanical movement.
This creates a connection between things that initially appear to be completely different areas of engineering.
Software → Electronics → Hardware → Mechanics → Physical System
As a student interested in aerospace engineering, I find this connection particularly interesting because it shows that modern aerospace engineering is not divided into completely separate subjects.
Programming, mathematics, electronics, control systems and mechanical engineering can all become parts of the same system.
NASA uses modelling and simulation extensively for spacecraft and mission development, including flight software, real-time simulation and hardware-in-the-loop testing.[1]
This made me interested in a broader question:
How does something that begins as code and simulation eventually become a physical aerospace system?
In this article, I explore my understanding of that journey.
I will look at mathematical modelling, simulation, coding, embedded systems, electronics, actuators, mechanical systems, hardware-in-the-loop testing and the relationship between the virtual and physical worlds.
Before exploring simulation and software, I think it is important to understand the larger engineering system.
Imagine an engineer wants to design a system that moves a control surface.
At first, this may appear to be a mechanical problem.
There is a control surface.
There is an actuator.
There are mechanical linkages.
However, the system may also need to decide how far the control surface should move.
That introduces control logic.
The control logic requires software.
The software needs a processor.
The processor needs electronics.
The system also needs sensors to determine what is happening.
The complete system therefore becomes something like:
The important thing I realised is that none of these parts work completely independently.
A software command has to produce a physical effect.
A physical effect has to be measured.
The measurement has to return to the software.
This creates a continuous connection between the digital and physical worlds.

One of the first things that interested me about aerospace engineering was the amount of work that can be done before building a physical prototype.
Aircraft and spacecraft can be expensive and complicated to test.
It would therefore be difficult to build a complete system every time an engineer wanted to change one parameter.
Simulation provides another approach.
Instead of immediately building the physical system, engineers can create a mathematical representation of it.
They can then study how the system behaves under different conditions.
For example, an aerospace simulation can represent:
Modern aerospace simulation tools can model aircraft, rotorcraft and spacecraft dynamics and can also support guidance, navigation and control development.[2]
NASA also uses high-fidelity simulation environments for aircraft and spacecraft development, testing and verification.[3]
This does not mean that simulation replaces physical testing.
Instead, I think of simulation as a way to ask questions before moving to the real system.
For example:
What happens if the aircraft becomes unstable?
What happens if the sensor becomes noisy?
What happens if the actuator responds more slowly than expected?
What happens if the system experiences a disturbance?
Simulation gives engineers a controlled environment in which these questions can be explored.

Before creating a simulation, the physical system needs to be represented mathematically.
This is where mathematics and physics become connected to software.
Consider a very simple example.
If a force acts on an object, Newton’s second law gives:
F = ma
This equation connects force, mass and acceleration.
If acceleration changes over time, velocity changes.
If velocity changes over time, position changes.
A simplified chain becomes:
Force → Acceleration → Velocity → Position
A computer cannot simply look at the physical aircraft and automatically understand all of these relationships.
The engineer has to describe the important relationships using equations and models.
For a more complex aerospace system, the model could include:
This is where I began to see that simulation is not simply creating a visual animation.
The important part is the mathematical model underneath it.
A visually impressive simulation is not automatically a useful engineering simulation.
The model needs to represent the physical behaviour that matters for the question being investigated.

Once the mathematical model has been created, it can be implemented inside a simulation environment.
The computer repeatedly calculates how the system changes with time.
A simplified simulation process could look like:
For example:
Input
↓
Mathematical Model
↓
Calculate Forces
↓
Calculate Motion
↓
Update Position and Orientation
↓
Repeat
The result can be displayed as graphs, numerical data or a visual simulation.
For aerospace systems, simulation can also include environmental conditions such as gravity, wind and atmospheric behaviour.
Tools such as MATLAB and Simulink provide aerospace modelling capabilities for vehicle dynamics, propulsion, environment models and guidance, navigation and control.[2]
NASA’s aircraft modelling work also demonstrates how software can be used to create virtual aircraft concepts and study their behaviour before those aircraft exist physically.[4]
This idea interests me because it changes the order in which engineering can happen.
Instead of:
Build → Test → Discover Problem → Modify
the process can become:
Model → Simulate → Identify Problem → Modify → Build
Physical testing is still necessary.
But simulation can reduce the number of unknowns before reaching that stage.

A mathematical model explains how the system behaves.
But the model still needs to be implemented.
This is where coding becomes important.
Programming allows mathematical relationships and engineering logic to be converted into instructions that a computer can execute.
For example, a simple control algorithm may calculate:
error = desired_value – measured_value
The software can then use that error to calculate a control command.
This sounds simple, but real aerospace software can become much more complex.
It may have to:
This made me realise that coding in aerospace is not only about writing a program that produces an output.
The software becomes part of the physical engineering system.
A small software decision can eventually result in a physical movement.
That means the software has to interact correctly with the hardware around it.

There is an important difference between an algorithm and the software that implements it.
An algorithm describes a method for solving a problem.
Software turns that method into executable instructions.
For example, an engineer may design an algorithm that calculates the required actuator position based on sensor measurements.
The simplified concept could be:
Measure → Calculate Error → Calculate Command → Send Command
The algorithm might initially be tested in simulation.
If the simulation produces the expected behaviour, the next question becomes:
Can this algorithm run on real hardware?
This is where embedded software becomes important.
An embedded system is designed to perform specific functions within a physical device.
Examples include:
The software therefore needs to work within the limitations of the hardware.
There may be limits on:
The software is no longer operating in an unlimited computer environment.
It has to interact with a real physical system.

The flight computer is one of the clearest examples of the connection between software and hardware.
A simplified architecture could look like:
Sensors
↓
Flight Computer
↓
Control Software
↓
Output Commands
↓
Actuators
The computer receives information from the aircraft.
The software processes that information.
The computer then produces commands.
Those commands are sent to other electronic systems.
Eventually, something physical moves.
Modern aerospace systems can use multiple computers and layers of processing, depending on the aircraft and its architecture.
The important point for me is that the computer itself is not the complete system.
It is part of a larger chain.
A control algorithm may be mathematically correct but still fail to produce the expected physical behaviour if:
This is why software engineering and hardware engineering cannot always be treated as separate activities.
They have to be integrated.

Electronics forms an important bridge between software and the physical world.
A computer produces digital information.
But motors, sensors and actuators interact with physical quantities such as:
The electronics therefore provides the interfaces needed to connect the digital system with the physical system.
A simplified chain could be:
Software
↓
Processor
↓
Electronic Interface
↓
Driver / Controller
↓
Actuator
↓
Mechanical Movement
For example, a software command may request a particular motor speed.
The processor generates an appropriate command.
An electronic controller receives that command.
The controller supplies power to the motor.
The motor generates torque.
The mechanical system responds.
This entire sequence can happen very quickly.
This is one of the areas where I started to understand the meaning of mechatronics and systems engineering.
A modern aerospace system can contain mechanical, electronic and software components that all depend on one another.

The final goal of many control systems is to produce a physical change.
Consider a simple actuator.
The software may determine:
Move the actuator by a certain amount.
The process could then be:
Software Command
↓
Electrical Signal
↓
Motor / Actuator
↓
Torque
↓
Mechanical Linkage
↓
Physical Movement
The mechanical design determines how that movement is transferred.
For example, a motor may rotate a shaft.
The shaft may move a linkage.
The linkage may move a control surface.
The control surface may change an aerodynamic force.
That force can then change the motion of the aircraft.
The complete chain could therefore become:
Code → Electrical Signal → Motor → Mechanical Movement → Aerodynamic Force → Aircraft Motion
This is the part of the process that I find particularly interesting.
A few lines of software can eventually influence something physical, but only because several engineering systems work together.

The system does not stop once the physical object moves.
The system also needs to know what happened.
This is where sensors become important.
Imagine that software commands an actuator to move.
The actuator moves.
But how does the computer know whether it actually moved?
A sensor can provide that information.
The simplified loop becomes:
Command
↓
Actuator
↓
Mechanical Movement
↓
Sensor
↓
Measurement
↓
Software
↓
New Command
This creates a feedback loop.
The physical world affects the sensors.
The sensors provide data to the software.
The software calculates a new response.
The electronics sends another command.
The mechanical system responds again.
This process can happen repeatedly.
The complete system therefore becomes:
Physical World
↓
Sensors
↓
Software
↓
Electronics
↓
Actuators
↓
Mechanical System
↓
Physical World
I think this is one of the most important ideas I have taken from learning about aerospace systems.
Software does not exist separately from the physical system.
It is part of a continuous loop.

One thing I found particularly interesting is that software can behave perfectly in simulation and still behave differently when connected to hardware.
There are many reasons for this.
A simulation may assume that:
Real systems do not behave this way.
Real hardware has:
This creates a major engineering challenge.
The software has to operate with imperfect information.
The hardware has to operate within physical limitations.
The mechanical system has to behave within the assumptions made by the model.
This is why testing becomes so important.

One of the most interesting concepts I discovered while exploring this topic is Hardware-in-the-Loop, or HIL.
The basic idea is to connect real hardware to a simulated environment.
Instead of connecting a real flight controller to a real aircraft, the flight controller can interact with a computer simulation representing the aircraft.
A simplified architecture could look like:
Simulated Aircraft
↔
Flight Computer
↔
Real Software
The computer simulates the aircraft dynamics.
The real flight computer runs the actual software.
The two systems communicate in real time.
This creates a bridge between simulation and physical hardware.
HIL is used to test embedded systems by connecting real controller hardware to a simulated physical environment.[5]
For example, a PX4 flight controller can be run on real hardware while the aircraft dynamics are simulated in Simulink.[6]
This means engineers can test real flight-control software and hardware without immediately needing a complete physical aircraft.
NASA also uses hardware-in-the-loop capabilities to test and integrate spacecraft software and avionics hardware before final physical systems are completed.[7]
This is a powerful idea because it sits between two extremes:
Pure Simulation
and
Full Physical Testing
HIL creates a middle stage.

I started to think of aerospace development as a gradual movement from the virtual world toward the physical world.
A simplified progression could be:
Represent the physical system using equations.
Implement the model in software and observe its behaviour.
Test the control or decision-making algorithms.
Test the software against a simulated environment.
Run real hardware with the simulated environment.
Test individual physical components.
Connect software, electronics and mechanical components.
Test the complete physical system under controlled conditions.
Move toward real-world testing.
This progression does not mean every aerospace project follows exactly these steps.
Different systems have different development processes.
However, the general idea is useful for understanding how engineers reduce uncertainty.
The closer the system gets to reality, the more physical effects have to be considered.

One of the biggest lessons I take from simulation is that a model is still a model.
It is not the real world.
Suppose a simulation assumes that a motor produces a certain amount of torque.
The actual motor may produce slightly different torque.
Suppose the simulation assumes that a mechanical joint moves freely.
The real mechanism may have friction.
Suppose the simulation assumes that a sensor has very little noise.
The real sensor may experience vibration and electrical interference.
These differences can affect the final result.
This means engineers have to compare simulation results with experimental data.
The process can become:
Simulation
↓
Physical Test
↓
Collect Data
↓
Compare Results
↓
Improve Model
↓
Run Simulation Again
This creates an iterative engineering process.
The model becomes more useful when it is informed by real measurements.
This is one reason why NASA and other aerospace organisations use multiple forms of simulation, testing and verification during system development.[1][3]

This idea leads into a broader concept called digital engineering.
Digital engineering involves using digital models, simulations, data and computational tools throughout the engineering lifecycle.
Instead of treating simulation as something used only at the beginning, digital models can remain useful during design, testing and operation.
A related concept is the digital twin.
A digital twin can be thought of as a digital representation of a physical system that can be connected with information about the real system.
The exact implementation can vary depending on the application.
For example, an aerospace system could have a digital model representing:
Data from the real system could then be compared with predictions from the model.
NASA and aerospace research organisations have been exploring digital engineering, multi-fidelity models and digital-twin approaches for complex aerospace systems.[8]
This makes me think of simulation differently.
It is not necessarily just a virtual experiment.
It can become part of the engineering lifecycle.

After exploring these ideas, I developed a simplified workflow that I would use to understand the development of an aerospace system.
The important word here is:
Repeat.
Engineering is rarely a straight line.
A physical test may reveal that the model is incomplete.
The model may reveal that the control algorithm needs to change.
The software may reveal that the hardware needs a different interface.
The mechanical system may reveal that an actuator is not powerful enough.
Each discovery can lead back to an earlier stage.
That is what makes systems engineering interesting to me.
The biggest lesson I took from exploring simulation and software is that aerospace engineering is much more connected than I initially thought.
When I first considered programming, I thought of it mainly as something happening inside a computer.
When I thought about mechanical engineering, I imagined physical structures and machines.
When I thought about electronics, I imagined circuits and components.
Now I see that these areas can form one complete system.
A simplified chain is:
Mathematics
↓
Simulation
↓
Software
↓
Electronics
↓
Hardware
↓
Mechanics
↓
Physical Behaviour
↓
Sensors
↓
Data
↓
Software
The process then repeats.
This changed the way I think about coding.
Code does not always remain digital.
In aerospace systems, code can influence a physical machine.
A software command can eventually produce:
The opposite is also true.
A physical event can produce data that changes what the software does next.
This is where software, electronics and mechanical engineering become one system.
This exploration answered some of my questions, but it also created several new ones.
Does every physical effect need to be modelled, or can a simplified model be sufficient for a particular engineering problem?
Hardware-in-the-loop provides one approach, but I would like to understand how these systems are designed in more detail.
If a sensor or actuator stops behaving normally, how can the software recognise the problem?
Could real-time data continuously improve a digital model?
Could future systems be tested extensively in simulation before the first physical prototype is built?
Could AI help engineers create models, optimise designs, detect faults or improve control algorithms?
This is an area I would like to explore further because software used in aerospace systems has requirements that go beyond simply making the program work.
These questions lead toward broader areas such as:
This exploration began with a simple question:
How does code become a physical action?
I initially thought the answer was simply:
Write code → run code → hardware responds.
But the more I explored the subject, the more complicated the connection became.
A real aerospace system requires:
Each part interacts with the others.
A mathematical model influences the simulation.
The simulation influences the algorithm.
The algorithm becomes software.
The software runs on hardware.
The hardware communicates with electronics.
The electronics controls actuators.
The actuators create mechanical movement.
Sensors measure the resulting behaviour.
The measurements return to the software.
And the cycle begins again.
This changed the way I think about aerospace engineering.
I no longer see software, electronics and mechanical engineering as completely separate subjects.
I see them as different parts of a larger engineering system.
For me, the most interesting part is the connection between the virtual and physical worlds.
An engineer can begin with an equation.
That equation can become a model.
The model can become a simulation.
The simulation can become an algorithm.
The algorithm can become software.
The software can run on a computer.
The computer can control electronics.
The electronics can control an actuator.
And the actuator can move a physical machine.
That journey from mathematics to code, from code to hardware, and from hardware to physical motion is what makes modern aerospace engineering so fascinating to me.
As a student interested in aerospace engineering, this exploration has shown me that learning aerospace is not only about understanding how an aircraft flies.
It is also about understanding how different engineering disciplines communicate with each other.
The aircraft does not know whether a problem belongs to software, electronics or mechanical engineering.
It simply responds to the complete system.
That is why I think the most important engineering skill is not only learning one subject.
It is learning how different subjects connect.
And for me, that is where aerospace engineering becomes much more than designing a machine.
It becomes the engineering of an entire system.
My interest in this topic came from exploring how modern aerospace systems combine simulation, software, electronics, control systems and physical hardware.
NASA’s simulation and systems-engineering resources helped me understand how modelling and simulation can support aerospace development, testing and verification.
I also explored hardware-in-the-loop concepts because they provide an interesting bridge between simulated environments and real embedded hardware.
The explanations, simplified models and reflections in this article are my own learning-based interpretation of the concepts studied. The references below are provided to identify the technical sources that informed my understanding.