• Home
    • Copter
    • Plane
    • Rover
    • Blimp
    • Sub
    • AntennaTracker
    • Mission Planner
    • APM Planner 2
    • MAVProxy
    • Companion Computers
    • Developer
  • Downloads
    • Mission Planner
    • APM Planner 2
    • Advanced User Tools
    • Developer Tools
    • Firmware
  • Community
    • Support Forums
    • Facebook
    • Developer Chat (Discord)
    • Developer Voice (Discord)
    • Contact us
    • Getting involved
    • Commercial Support
    • Development Team
    • UAS Training Centers
  • Stores
  • About
    • History
    • License
    • Trademark
    • Acknowledgments
    • Wiki Editing Guide
    • Partners Program
Dev Logo
  • License (GPLv3)
  • AP_Peripheral Devices
  • Downloading the code / Using Git
  • Building the code
  • Editors & IDEs
  • Learning the code
  • Simulation & Testing
    • SITL Simulator
    • Mission Planner Simulation
    • Gazebo
    • XPlane-10
    • XPlane-10 Soaring
    • RealFlight
    • Morse
    • Replay
    • JSBSim
    • AirSim
    • Silent Wings Soaring
    • Last Letter
    • CRRCSim
    • HITL Simulators
    • Autotest Framework
    • Unit Tests
    • SCRIMMAGE
    • Webots
    • MATLAB and Simulink
      • MATLAB Simulation
      • Simulink Simulation
      • Plotting in real time
      • MATLAB serial driver testing
    • JSON interface
  • Debugging
  • ArduPilot On Linux
  • Support Proxy
  • Contributing Code
  • MAVLink Interface
  • CAN and DroneCAN/UAVCAN
  • Companion Computers
  • ROS1/ROS2
  • Lua Scripts
  • Porting to a new Flight Controller
  • OEM Customization
  • Secure Firmware
  • RemoteID
  • Advanced Hardware Info
  • MAVProxy Developer GCS
  • Resources for GCS Developers
  • RTF Vehicle Developer Information
  • How The Team Works
  • Events
  • Training Centers
  • GSoC
  • Developers Conference
  • 2022 Roadmap
  • Wiki Editing Guide
  • USB IDs
  • User Alerts
  • Academic Works Involving ArduPilot
  • Appendix


Individual Partners SWAG Shop
Dev
  • Simulation
  • MATLAB and Simulink
  • Simulink Simulation
  • Edit on GitHub

Simulink Simulation¶

Connection blocks are provided to read and write to ArduPilot SITL, along with examples for a basic rover and a complex helicopter model. Both examples require additional MATLAB toolboxes. It is recommended to run the MATLAB example to test the connection before proceeding to the Simulink examples, the Simulink connection is made using the same -f JSON:127.0.0.1 command.

Note

The Simulink connection library and examples were made using 2020a, older versions of the software can’t use these files. Someone with access to 2020a can export for use with a older version, however it may not run as expected. Join the Discord simulation chanel for help.

Previous Next

Questions, issues, and suggestions about this page can be raised on the forums. Issues and suggestions may be posted on the forums or the Github Issue Tracker.

Creative Commons License© Copyright 2024, ArduPilot Dev Team.