Main Content

Setting Up Cygwin Toolchain and Downloading PX4 Source Code

Note

This section explains the task to be completed as part of the step—Setup Cygwin Toolchain and Download PX4 Source Code—of the Hardware Setup process (using the Hardware Setup screens). Do not perform this as a standalone task.

Note

Ensure that your PC is connected to an active internet connection before proceeding with this step.

To set up Cygwin toolchain and download the PX4 source code that is used in UAV Toolbox Support Package for PX4® Autopilots, follow these steps:

  1. Download version 0.8 of PX4 Cygwin Toolchain MSI Installer, which is compatible with PX4 Firmware v1.10.2, available at this link.

    Note

    UAV Toolbox Support Package for PX4 Autopilots supports only version v0.8 of PX4 Windows Cygwin Toolchain MSI Installer, even though a latest version may be available.

  2. Run the MSI installer and start the installation of the toolchain.

  3. Change the installation folder for Cygwin to any local folder (for example, C:\px4_cygwin), and then click OK.

  4. At the last step of the PX4 Toolchain Setup wizard, do the following:

    • If you do not have the PX4 Source Code (PX4 Autopilot Firmware v1.10.2) downloaded in the host computer, select the option Clone PX4 repository and Start Simulation, and then click Finish. This option clones the current PX4 main Firmware. When you click Verify Installation in Step 6 below, the firmware is checked out automatically to v1.10.2.

    • If the PX4 Source Code (PX4 Autopilot Firmware v1.10.2) is already available in the host computer, click Finish without selecting the Clone PX4 repository and Start Simulation option.

  5. If you selected Clone PX4 repository and Start Simulation and clicked Finish, a bash shell is launched which starts cloning the firmware.

    Wait for the firmware to finish cloning. After the firmware is cloned, Simulation starts in jMAVSim. You can close the bash shell at this stage.

    The PX4 firmware is cloned inside a folder named home, inside the Cygwin folder that you selected during installation (for example, C:\px4_cygwin\home\).

  6. In the Hardware Setup screen – Setup Cygwin Toolchain and Download PX4 Source Code – enter the path that you used for the Cygwin toolchain installation (same as Step 3), and then click Verify Installation.

After the installation is successfully verified, click Next to proceed to the next step of the Hardware Setup process.