Building and running PX4 Autopilot on BeagleBone® Blue

This article will explain how build and run the PX4 Autopilot on BeagleBone Blue.

Requirements

  • Windows Subsystem for Linux (WSL) - Ubuntu 20.04.5 LTS

  • BeagleBone Blue - Debian GNU/Linux 10 (buster)

  • Arm GNU Toolchain - 8.3-2019.02

  • USB to UART Bridge - Silicon Labs CP210x

  • GNSS and Compass M10Q-5883 - Mateksys (optional)

  • Digital Airspeed Sensor ASPD-4525 - Mateksys (optional)

PX4 1.15.0 BBBlue pre-compiled binaries PX4 1.14.0 BBBlue pre-compiled binaries

Setup

You need to connect the USB to UART Bridge to the UART1 port of the BeagleBone Blue board. The bridge will allow you to connect to the PX4 Autopilot via QGroundControl or to perform hardware-in-the-loop simulations. The image below shows the setup.

ASPD-4525 Digital Airspeed Sensor and M10Q-5883 GNSS and Compass
Beagle Bone Blue and Silicon Labs CP210x USB to UART Bridge

Building PX4 Autopilot v1.14.0

  • Open a WLS window.

  • Download and unzip the Arm GNU Toolchain (gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz).

  • Clone the PX4 Autopilot repository. Make sure you checkout v1.14.0.

The step below is needed ONLY for PX4 v.1.13.0! Skip if building PX4 v1.14.0 or higher.

The step above is needed ONLY for PX4 v1.13.30! Skip if building PX4 v1.14.0 or higher.

  • Open the default.px4board file in the boards/beaglebone/blue/ folder.

  • Add (modify) the following lines to (inside) the default.px4board file.

  • Go back to the PX4-autopilot folder and execute the following commands.

  • During the build process, you should observe the following output.

  • Once the build is complete, you must upload the binaries to the BeagleBone Blue board. Use the following command to upload the binaries and the configuration files.

Running PX4 Autopilot v1.14.0

Once the binaries and the configuration files are uploaded to the BeagleBone Blue you can SSH into the BeagleBone Blue and run the px4 binary. To SSH into the BeagleBone Blue and run the px4 binary execute the following commands:

PX4 Autopilot running on BeagleBone Blue

The px4.config file

The px4.config file is specific for every board. The px4.config file below is specific to the BeagleBoneBlue board only.

2KB
Open

Last updated

Was this helpful?