MATLAB and Simulink¶
Community Resources¶
All Matlab and Simulink functions rely on the TCP/UDP/IP Toolbox 2.0.6. A modified version of the toolbox is provided in the ArduPilot repository. The toolbox is compiled into a MEX file allowing for fast connection speeds, also removing the need for a licence for the official TCP/UDP tools. Pre-built MEX files are provided for Windows and Linux however it may be necessary to compile locally. The basic MATLAB Simulation copter example will try to do this if no MEX file is found. This should be run before trying the other examples.
Simulink Support Package¶
For the supported capabilities, installation instructions, and examples, see the UAV Toolbox Support Package for ArduPilot Autopilots.
Tip
For advice using MATLAB and Simulink with ArduPilot please join the simulation channel on Discord.