Introduction
Testing drone software directly on real hardware can be risky and costly. Software-In-The-Loop (SITL) helps solve this by allowing developers to run and test drone control software in a simulated environment on a computer.
Imagine a pilot training on a flight simulator before flying a real plane. The simulator mimics flying conditions so the pilot can practice safely. Similarly, SITL lets drone software 'practice' flying in a virtual world before real flights.
┌───────────────┐ ┌───────────────┐
│ Drone Software│◄─────►│ Drone Simulator│
│ (on PC) │ │ (virtual drone)│
└───────────────┘ └───────────────┘
▲ ▲
│ │
│ Sensor data & status │
│ │
└───── Commands ────────┘