image thumbnail

ArduPilot Software-In-The-Loop (SITL) Connector for Simulink

version 1.0.1 (4.56 MB) by Kiril Boychev
A Simulink S-function for sending and receiving data to and from ArduPilot SITL Simulator

19 Downloads

Updated 25 Mar 2022

From GitHub

View license on GitHub

ArduPlane SITL Connector for Simulink

ArduPlane SITL Connector Simulink model

A Simulink S-function for sending and receiving data to and from ArduPilot SITL Simulator

View ArduPilot SITL Connector for Simulink on File Exchange

Build

To build the "ardupilot_sitl_connector.cpp" S-function:

Example use

  • Download and install Mission Planner. https://ardupilot.org/planner/docs/mission-planner-installation.html
  • Open Mission Planner, select the "Simulation" tab and click on the "Plane" icon. When prompted about the SITL version, select the "Stable" one.
  • Once the SITL is downloaded, open a command prompt and navigate to "C:\Users<user>\Documents\Mission Planner\sitl".
  • Execute the following command in the command prompt:
   ArduPlane.exe --home -35.363261,149.165230,0,0 --model json
  • Open the "ardupilot_sitl_connector_example.slx" model.
  • In Mission Planner click the connect icon. Use the default host and port options.
  • Run the Simulink model.

Note: The ArduPilot AHRS_EKF_TYPE parameter must be set to 10. The value 10 corresponds to SITL. The above workflow is tested on Windows 10 and in MATLAB R2018b and MATLAB R2022a.

https://www.youtube.com/watch?v=9ParKhhKa4M

Cite As

Kiril Boychev (2022). ArduPilot Software-In-The-Loop (SITL) Connector for Simulink (https://github.com/KBoychev/ardupilot-sitl-connector/releases/tag/1.0.1), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.