SITL versus HITL for drone integration

SITL versus HITL for drone integration is a question of which risk needs testing next. In software-in-the-loop (SITL), the autopilot runs in a software simulation; in hardware-in-the-loop (HITL), a real flight controller runs in a simulated vehicle environment. Start with SITL to investigate software behaviour, then use a hardware test when the unresolved question involves the target controller, firmware or physical interfaces. The two methods address different risks, so neither is a substitute for the other.

SITL versus HITL for drone integration: which validates what?

SITL puts an autopilot software build and a simulated vehicle into a feedback loop: the simulated vehicle supplies sensor-like inputs, and the autopilot’s outputs influence the simulated flight. This is useful for investigating mission logic and software behaviour without using the target flight controller. ArduPilot’s documentation describes SITL as running the autopilot on a computer without special flight hardware, while PX4 documents software-based simulation alongside hardware simulation. ArduPilot’s SITL overview and PX4’s simulation documentation explain their respective approaches.

HITL puts a real flight controller in that loop, with a simulator supplying vehicle dynamics or simulated sensor data. It can therefore expose issues associated with the actual board and its firmware setup that a desktop software build cannot. But HITL does not establish that every real sensor, peripheral, power path or airframe interface works: those must be included and checked where relevant.

The practical distinction is not “simulation or real testing”. It is which part of the system is real. SITL answers questions about software and simulated behaviour; HITL helps investigate flight-controller-specific risks. A later bench test is still needed for the physical connections and safety checks that neither simulation configuration covers.

What does SITL prove before flight hardware is involved?

SITL runs an autopilot build on a development computer and couples it to a simulated vehicle. It lets an engineering team exercise the software path before the target flight controller is part of the setup. The simulator supplies simulated vehicle and sensor information, while the autopilot’s outputs feed back into the simulated environment. ArduPilot’s simulation guide describes this feedback loop.

SITL can check whether a mission loads, expected commands and state changes occur, and software responds to simulated conditions or selected failures. Repeated runs help teams evaluate changes to mission logic, configuration or application code. Results cover the software and simulated setup; board, wiring and physical-sensor behaviour require hardware checks.

SITL can also help test companion-computer applications. For example, PX4 documents using a real companion-computer application against a simulated vehicle, with communication through the software stack’s supported interfaces. That is a way to investigate application and message-flow behaviour, not a physical test of the flight-controller-to-companion link on the intended aircraft. PX4’s simulation guide discusses this setup.

Use SITL for questions about mission sequencing or an application’s response to simulated telemetry. For questions about a physical UART, boot behaviour or target-specific firmware, use a hardware setup that includes the relevant components.

What does HITL reveal that SITL cannot?

HITL runs the autopilot on the real flight controller while a simulator provides some or all of the simulated vehicle environment. Exactly what is connected varies with the test design and autopilot stack.

Test aspectSITLHITL
Autopilot executionSoftware build runs on a computerAutopilot runs on flight-controller hardware
Vehicle and sensor inputsSupplied by the software simulationMay be supplied by a simulator; actual sensors are not inherently required
Board-specific behaviourNot tested on the target boardCan reveal issues tied to the real controller and its firmware configuration
Physical peripheral integrationNot established by the simulation aloneOnly tested when the relevant peripheral and interface are actually included

PX4 describes HITL as running normal PX4 firmware on real hardware, with simulation data entering the system through a different point than in SITL. Its documentation also notes that HITL setup uses a compatible configuration and simulator; support and setup depend on the chosen target. PX4’s HITL documentation sets out the arrangement and its constraints.

HITL is not simply SITL with all sensors physically attached. For example, the simulator may provide simulated sensor data while the flight controller is real. Nor does a successful run validate a companion-computer link unless that computer, communication path and relevant application are part of the test. Define the loop before interpreting its results.

When should a drone integration move from SITL to HITL?

Move from SITL to HITL when the main unresolved risk is no longer adequately represented by software running on a development computer. Use this risk-led sequence:

  1. Write down the test question. Specify what must be demonstrated, such as mission-state transitions, a simulated failsafe response or autopilot-to-companion communication. Name the behaviour checked in the test result.
  2. Use SITL for software-level issues. Exercise mission logic, application behaviour and simulated responses. Record the software version, configuration, simulator and expected outcome so another engineer can reproduce the run.
  3. Identify what SITL leaves out. List target-specific dependencies: flight-controller firmware and board, physical serial or network links, startup behaviour, power arrangements, and peripherals. Items absent from the simulation require separate checks.
  4. Move to HITL for hardware-dependent questions. Use the relevant flight controller and an appropriate simulator configuration when the risk concerns firmware running on that board, its interfaces or its hardware behaviour. Verify that the selected stack and target support the intended setup in their documentation.
  5. Continue to controlled bench checks. Confirm physical wiring, communication and safety arrangements separately. A simulation result does not replace a test of the actual assembled system.

There is no universal calendar date or number of SITL runs that determines the handoff. It depends on the risk still open and the coverage the current test setup provides. If a software change is the only unknown, SITL may answer the question. If a board-level communication path is untested, move to hardware before relying on that link.

How do PX4 and ArduPilot change the test setup?

Both PX4 and ArduPilot document software simulation and ways to run simulation with flight hardware, but terminology, supported configurations and setup procedures differ. A procedure for one stack, board or vehicle type should not be assumed to apply to another.

For PX4, start with the PX4 simulation documentation and consult its HITL setup guide for hardware-specific details. The current HITL guide notes that its setup is community-supported and may not work with current PX4 versions, so check the live documentation and target compatibility before building a test plan.

For ArduPilot, distinguish ordinary SITL from Simulation on Hardware. In that approach, the autopilot runs both the control software and the simulation. Its documentation warns that real and simulated configurations share parameter storage: save configuration data before switching and follow the documented restore procedure. Do not assume ordinary flight firmware includes this simulation feature. Select the instructions for the actual vehicle and hardware rather than assuming the acronym “HITL” describes the same architecture across both ecosystems.

A practical use case: verify mission software before field testing

Consider a team adding a companion-computer application that sends mission commands and reacts to telemetry. The immediate question is whether the application behaves correctly when a command is rejected or telemetry stops. A simulated vehicle can exercise those software paths before a physical aircraft is involved. This is a proposed evaluation scenario, not a reported customer result or a claim of measured time savings.

Write the expected response before running each scenario. Use the same scenario identifiers when moving to hardware, and record what changed in the setup. A useful test record includes:

  • Configuration: autopilot version, simulator version, vehicle model, application revision and parameter file.
  • Scenario: starting state, command or injected fault, expected response and the project’s pass criterion.
  • Evidence: application logs, autopilot logs, timestamps and observed state transitions.
  • Coverage boundary: which computer, interfaces, sensors and power paths were real, simulated or absent.
  • Next unresolved question: for example, whether the target serial link reconnects after a companion-computer restart.

If the software response is wrong in SITL, investigate that result before adding hardware complexity. If the software response is correct but the actual serial connection remains untested, design a controlled hardware test for that path. Passing the first scenario is evidence about the tested software configuration, not permission to skip assembled-system checks.

What should pass before a simulated drone reaches the bench?

Before moving from a virtual test to a powered bench setup, turn the test plan into explicit checks. Use SITL results to identify the next integration risk, then verify the physical system on the bench.

  1. Repeat the mission scenario. Confirm that the defined sequence and expected state changes occur consistently in the documented simulation setup.
  2. Check telemetry and failsafe behaviour. Verify that the expected messages and configured responses appear in the test, and record which failures were simulated. A simulated response does not confirm the equivalent physical sensor or radio link.
  3. Test the autopilot-to-companion path at the appropriate stage. Confirm the expected protocol, interface and message exchange. If the question concerns physical serial or network wiring, test that actual path on the bench rather than relying only on SITL.
  4. Prepare a safe bench configuration. Follow the autopilot and airframe manufacturer’s guidance, secure the hardware, and prevent unintended motor or actuator movement. Remove propellers and isolate hazardous actuator outputs before powered bench testing; use the manufacturer’s procedures for the actual hardware. Review the hardware-simulation setup and limitations.

A flight controller and a companion computer are separate hardware roles, even when combined in one unit. Helios FMU combines a sensor-redundant flight controller and a Raspberry Pi Compute Module 5 companion computer. That makes the Helios FMU product listing relevant when planning an integration involving those roles; it does not replace checking the interfaces and test configuration for a particular project.

Frequently asked questions

Can SITL test a drone mission without a physical aircraft?

Yes. SITL runs autopilot software with a simulated vehicle, so mission behaviour can be exercised without a physical aircraft. It does not establish how a specific assembled vehicle will behave.

Can a companion computer be included in a SITL test?

Yes. A companion-computer application can communicate with a simulated vehicle through supported software interfaces. This can test application logic and message flow, but not the physical link on the intended aircraft unless that hardware path is separately tested.

Does HITL require every drone sensor to be physically connected?

No. A HITL setup can use simulated sensor data with a real flight controller. Which sensors or peripherals are physical depends on the test design.

Should propellers be fitted during a HITL bench test?

No. Keep propellers removed during bench tests where motors or actuators could move, and follow the autopilot and airframe manufacturer’s safety procedures.

Planning an autopilot and companion-computer integration? Review SkyPulse’s Helios FMU technical documentation to understand the product’s documented hardware roles and interfaces. For project-specific interface questions or evaluation planning, contact SkyPulse’s engineering team.

For the hardware and firmware choices that define the system being simulated, read how to choose a flight controller for PX4 and ArduPilot.