mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
docs: update PX4 building instructions
This commit is contained in:
@@ -77,19 +77,19 @@ PX4 may be compiled from the source and automatically flashed to the flight cont
|
||||
To do this, clone the PX4 repository:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/PX4/Firmware.git
|
||||
git clone https://github.com/PX4/PX4-Autopilot.git
|
||||
```
|
||||
|
||||
Select the appropriate version (tag) using `git checkout`. Then compile and upload the firmware:
|
||||
|
||||
```
|
||||
make px4fmu-v4_default upload
|
||||
```bash
|
||||
make px4_fmu-v4_default upload
|
||||
```
|
||||
|
||||
Where `px4fmu-v4_default` is the required firmware variant.
|
||||
Where `px4_fmu-v4_default` is the required firmware variant.
|
||||
|
||||
In order to upload the `v3` firmware to Pixhawk, you may need to use the `force_upload` option:
|
||||
|
||||
```
|
||||
make px4fmu-v3_default force-upload
|
||||
```bash
|
||||
make px4_fmu-v3_default force-upload
|
||||
```
|
||||
|
||||
@@ -79,19 +79,19 @@ PX4 может быть собран из исходников и загруже
|
||||
Для это склонируйте репозиторий PX4:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/PX4/Firmware.git
|
||||
git clone https://github.com/PX4/PX4-Autopilot.git
|
||||
```
|
||||
|
||||
Выберите необходимую версию (тэг) с помощью `git checkout`. Затем соберите и загрузите прошивку:
|
||||
|
||||
```
|
||||
make px4fmu-v4_default upload
|
||||
```bash
|
||||
make px4_fmu-v4_default upload
|
||||
```
|
||||
|
||||
Где `px4fmu-v4_default` – требуемый вариант прошивки.
|
||||
Где `px4_fmu-v4_default` – требуемый вариант прошивки.
|
||||
|
||||
Для загрузки прошивки `v3` в Pixhawk может понадобиться команда `force_upload`:
|
||||
|
||||
```
|
||||
make px4fmu-v3_default force-upload
|
||||
```bash
|
||||
make px4_fmu-v3_default force-upload
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user