QGroundControl desktop versions can be used to install PX4 firmware onto Pixhawk-series flight-controller boards.
Before you start installing Firmware all USB connections to the vehicle must be disconnected (both direct or through a telemetry radio). The vehicle must not be powered by a battery.
Generally you should use the most recent released version of PX4, in order to benefit from bug fixes and get the latest and greatest features.
This is the version that is installed by default.
To install PX4:
Start QGroundControl and connect the vehicle.
Select "Q" icon > Vehicle Setup > Firmware (sidebar) to open Firmware Setup.
Connect the flight controller directly to your computer via USB.
Connect directly to a powered USB port on your machine (do not connect through a USB hub). :::
Select the PX4 Pro Stable Release vX.x.x option to install the latest stable version of PX4 for your flight controller (autodetected).
单击 OK 按钮开始更新。
The firmware will then proceed through a number of upgrade steps (downloading new firmware, erasing old firmware etc.). Each step is printed to the screen and overall progress is displayed on a progress bar.
Once the firmware has completed loading, the device/vehicle will reboot and reconnect.
If QGroundControl installs the FMUv2 target (see console during installation) and you have a newer board, you may need to update the bootloader in order to access all the memory on your flight controller.
Next you will need to specify the vehicle airframe (and then sensors, radio, etc.)
# 安装PX4 Main, Beta或自定义固件
To install a different version of PX4:
- 如上所述连接飞行器，并选择 PX4 飞行栈 vX.x.x Stagable Release.
- 检查 高级设置 并从下拉列表中选择版本：
- 标准版本 (稳定): 默认版本 (即无需使用高级设置来安装！)
- Beta 测试(beta)： 测试/候选版本。 只有当新版本准备完毕时才可用。
- Developer Build (master): PX4/PX4-Autopilot 主分支 最新版本。
- 自定义固件文件...: 自定义固件文件 (例如你已在本地构建的)。 如果选择 Custom firmware file ，您需要在下一步中从文件系统中选择自定义固件。
Firmware update then continues as before.
# Bootloader 更新
您可能需要更新的是安装较新的 Pixhawk 板FMUv2 固件 。 If QGroundControl installs the FMUv2 target (see console during installation), and you have a newer board, you may need to update the bootloader in order to access all the memory on your flight controller.
您可以按照 引导加载器更新 > FMUv2 启动加载器更新