Module 10 · Simulation and parameter testing · Lesson 23 of 26

Simulation and parameter testing

Software-in-the-loop, hardware-in-the-loop and a safe, step-by-step path from simulator to first flight.

In this lesson · about 16 minutes

  • Explain software-in-the-loop (SITL) and hardware-in-the-loop (HITL)
  • Plan a parameter test campaign, changing one thing at a time
  • Use flight logs to compare a test with your model

Crashing a simulated drone costs nothing. Professionals test as much as possible in simulation before risking hardware.

  • Software-in-the-loop (SITL): the real autopilot software (for example ArduPilot or PX4) runs on a computer, connected to a physics simulator (such as Gazebo, or the simple simulators built into those projects). You connect your usual ground-control program (such as Mission Planner or QGroundControl) and fly missions, test failsafes and try parameter changes.
  • Hardware-in-the-loop (HITL): the real flight controller board runs the software, but its sensors are fed simulated data. It catches problems with the board, wiring and timing.
  • Tethered and bench tests: props off for motor direction and failsafe tests; a thrust stand to measure a motor and prop against the maker's table; a tether for first hovers.

A test campaign

A good test changes one parameter at a time, writes down what it expects before flying, and keeps the log. For example:

TestChangePredictionMeasure in the log
1Baseline hover, 2 minutesHover throttle ≈ 67%, about 200 WThrottle, current, voltage, vibration
2Add the 250 g cameraPower up about 20%Current, hover throttle
3Raise altitude P by 20%Faster climb, maybe slight overshootAltitude target against actual
4Low-battery failsafe at a set levelReturns home and lands with at least 20% leftEnergy used, landing voltage

Then compare: does the measured hover power match your endurance model within 10–15%? If not, find out why before trusting the model for missions.

Hands-on lab (simulated terminal)

Start a simulated drone (SITL)

A simulated session showing typical commands for ArduPilot's SITL on a Linux or WSL computer. Nothing here touches real hardware.

Step 1 of 6. Type each command and press Enter. Nothing runs on your computer.

Start a simulated drone (SITL)

1. Start a simulated quadcopter with the console and map windows.

you@lab:~/ardupilot$

Flashcards

Part 3 key terms

0 of 10 known

Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.

10 left in the deck

Part 3 check0 of 3 correct

Question 1

1.What does software-in-the-loop (SITL) test?

Question 2

2.Why change only one parameter per test flight?

Question 3

3.Your test log shows 245 W hover power; your model predicted 203 W. What is the best next step?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

Written by Noviq Academy in its own words. The calculators use standard first-order engineering models (momentum theory, typical propeller coefficients, ideal battery maths): good for comparing options and sizing a first design, not a substitute for bench tests, manufacturer data and test flights. Always follow your country's drone rules, fly away from people, and treat lithium batteries with care. Product and software names belong to their owners. Read-aloud and the whiteboard voice use your device's built-in voices.