Aviumtechnologies

Pixhawk SIL Connector for Simulink

Simulink C++ S-function for software-in-the-loop simulation with Pixhawk.

View pixhawk-sitl-connector on File Exchange pixhawk-sil-connector GitHub repository

Requirements

  • MATLAB & Simulink (MATLAB R2022a or earlier)
  • MinGW-w64 or MSVC C/C++ Compiler
  • QGroundControl
  • PX4-Autopilot source code

Files

pixhawk_sil_connector.cpp
make.m
includes.zip (contains the Asio C++ and MAVLink C libraries)

Build instructions

  • Install MATLAB-supported compiler
    https://mathworks.com/support/requirements/supported-compilers.html.
  • Download the "pixhawk_sil_connector.cpp" and "make.m" files and the "includes.zip" archive.
  • Unzip the "includes.zip archive".
  • Run "make.m" to create a "pixhawk_sil_connector.mexw64" (Windows), "pixhawk_sil_connector.mexa64" (Linux), "pixhawk_sil_connector.mexmaci64" (macOS) file.

Use instructions

Example use of the Pixhawk SIL connector

Pixhawk SIL connector example

Pixhawk SIL connector example