This repository provides an automation script that applies specific modifications to the ArduPilot® codebase in order to integrate a Simulink®-specific library (AC_Simulink).
This repository is designed to use alongside the UAV Toolbox Support Package for ArduPilot® Autopilots
- A local checkout of the ArduCopter-4.6.2 or ArduPlane-4.6.2 repository (GPL v3).
MathWorks Products (https://www.mathworks.com)
Requires MATLAB® release R2025b
Clone this repository:
git clone https://github.com/mathworks-robotics/scripts-patch-ardupilot-uav-toolbox
cd scripts-patch-ardupilot-uav-toolbox
git checkout v1.0
Run the automation script in MATLAB, providing the path to your local ArduPilot repository and the intended vehicle type.
Currently, only Copter and Plane are supported as valid vehicle types.
runArduPilotPatch(<path-to-ardupilot-repo>, 'Copter')
The license is available in the License.txt file in this GitHub repository.
You can post your queries on the MATLAB Central page for the support package. You can also add your questions at MATLAB Answers.
Copyright 2025 The MathWorks, Inc.