> For the complete documentation index, see [llms.txt](https://wiki.ariitk.in/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.ariitk.in/wiki/tutorials/workspace-setup/px4-setup.md).

# PX4 Setup

Installing firmware for the PixHawk.

## Step 1: Install QGC

Download the QGroundControl AppImage from the following link:

{% embed url="<https://d176tv9ibo4jno.cloudfront.net/latest/QGroundControl.AppImage>" %}

Extract the downloaded archive by running the following in the terminal

{% hint style="warning" %}
First navigate to the folder where the download is stored.
{% endhint %}

Go to the folder where the AppImage has been downloaded by:

```bash
cd ~
cd Downloads/
chmod +x ./QGroundControl.AppImage
./QGroundControl.AppImage  (or double click)
```

If everything has been done correctly, you should see a window of the world showing.

## Step 2: Install the Toolchain

Follow the instructions here to install the PX4 toolchain:

{% content-ref url="/pages/-LVOpOS0fbVj5mO\_pHvu" %}
[PX4 Toolchain Setup](/wiki/tutorials/workspace-setup/px4-setup/px4-toolchain-setup.md)
{% endcontent-ref %}

## Step 3: Building the software

Run the following in the terminal:

```bash
# creates install directory. Change this if required.
mkdir -p ~/src
cd ~/src

# download Firmware
git clone https://github.com/PX4/Firmware.git
cd Firmware


#The following is what you have to do when you are going to work on a board.... Wait for it   :)
# building
make px4fmu-v2_default

# upload to board
make px4fmu-v2_default upload
```

For a more detailed and extensive build, check this:

{% embed url="<https://docs.px4.io/main/en/dev_setup/building_px4.html>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.ariitk.in/wiki/tutorials/workspace-setup/px4-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
