Downloading PX4 Source Code in Ubuntu 18.04 and 20.04
This section explains the task to be completed as part of the
Download PX4 Source Code—of the Hardware Setup process
(using the Hardware Setup screens). Do not perform this as a standalone task.
UAV Toolbox Support Package for PX4® Autopilots requires PX4 Autopilot Firmware v1.12.3
Download PX4 Source Code from GitHub
To download the PX4 Sourcecode (PX4 Autopilot Firmware v1.12.3) on the Ubuntu® 18.04 and 20.04 host computer:
Open the bash terminal on Ubuntu 18.04 or 20.04
Create a directory named
mypx4in the home folder.
create a directory in home directory, as described below:
Ensure that your computer is connected to an active internet connection before proceeding with the next step.
Go to the newly created
px4directory, and run the following commands one-by-one (you may need to wait for a command execution to complete before entering the next command):
git clone https://github.com/PX4/Firmware.git Firmware
git checkout v1.12.3
git submodule update --init --recursive
The download may take several minutes to complete (depending on the internet speed).
After you complete this step, go back to the Hardware Setup screen again and continue with the next step.