How to Manually Clone the Scripts to Patch ArduPilot for UAV Toolbox Repository
During the Hardware Setup process, the Scripts to Patch ArduPilot for UAV
Toolbox repository is automatically cloned in the Clone Scripts to
Patch ArduPilot for UAV Toolbox screen. If this automatic cloning fails,
perform these steps to manually clone the repository.
Start your WSL distribution.
Open Command prompt and execute:
wsl -d <distributionName>
Replace
<distributionName>with the name of your WSL Ubuntu 22.04 distribution.
Choose the clone location.
Use a Windows folder location rather than the WSL folder location
To clone the repository to your home directory, execute:
cd ~
Or, to clone to a specific Windows folder, execute:
For example:
cd /mnt/c/Users/<username>/Documents/MATLAB
Replace
<username>with your username.
Clone the repository.
In the opened WSL distribution execute:
git clone https://github.com/mathworks-robotics/scripts-patch-ardupilot-uav-toolbox
This will create a folder named
scripts-patch-ardupilot-uav-toolbox.
Checkout the required firmware branch.
Navigate to the cloned directory:
cd scripts-patch-ardupilot-uav-toolbox git checkout v1.0
If you get an error about the branch/tag not existing, execute:
git fetch origin --tags
Once the clone is successful, return to the Clone Scripts to Patch ArduPilot for UAV Toolbox screen. Specify the path to your cloned repository and then click Clone Repository button.