SITL (Software In The Loop)
- Purpose : Acts as a full-fledged ArduPilot simulator, allowing you to test code changes, mission planning, and new features without needing a physical drone.
- How it works :
1) Simulates the ArduPilot firmware (the code that would run on your actual autopilot) within your computer.
2) Mimics a complete drone, including flight dynamics, sensors (GPS, barometer, accelerometer, etx.) and even environmental factors like wind.
- Benefits :
1) Safe Development : Experiment without risking hardware damage.
2) Controlled Testing : Introduce specific scenarios, sensor glitches, or failures to test your code's robustness.
3) Rapid Iteration : Make changes and test their effects quickly without the overhead of deploying to real drone.
MAVProxy (MAVLink Proxy)
- Purpose : A versatile ground control station (GCS) tool that communicates with ArduPilot vehicles (both real drones and SITL simulations).
- How it works :
1) Translates commands from your computer into the MAVLink protocol, a language understood by ArduPilot autopilots.
2) Receives and displays telemetry data (drone's position, battery, sensor readings, etc.) sent by the vehicle.
- Functions :
1) Arming/Disarming : Control the simulated drone's motors.
2) Flight Modes : Switch between modes like GUIDED, AUTO, RTL (Return To Launch).
3) Mission Control : Upload and execute pre-planned missions.
4) Parameter Tuning : Live adjustment of parameters that govern the vehicle;s behavior.
5) Data Logging : Record telemetry for analysis.
How SITL and MAVProxy Work Together
1. Layunch SITL : Start a SITL simulation for the vehicle type you want to test (copter, plane, rover, etc.). This creates a virtual drone running the ArduPilot firmware in your computer.
2. Connect MAVProxy : MACProxy acts as a bridge between your computer and the simulated drone. It establishes a communication channel with the SITL instance.
3. Control and Monitor : Using MAVProxy's commands, you can:
1) Send commands to the SITL drone, just as you would to a real drone.
2) See the simulated drone respond in a virtual environment or on a map.
3) Get real-time feedback on the drone's "state" through telemetry.

댓글 영역