Main Content

Integration with General PX4 Architecture

The UAV Toolbox Support Package for PX4® Autopilots enables you to design controllers and estimators in Simulink and deploy to PX4 Autopilot boards. You can integrate the generated code from the Simulink models, with the PX4 flight stack and then deploy the same to the PX4 Autopilots.

General PX4 Architecture

The high-level software architecture of PX4 includes modules for storage, external connectivity, drivers, uORB publish-subscribe message bus, and flight stack components.

PX4 Architecture (Image courtesy: https://dev.px4.io/v1.9.0/en/concept/architecture.html)

Some of the modules and interfaces of the general PX4 architecture can be integrated with UAV Toolbox Support Package for PX4 Autopilots.

Supported Simulink Blocks that Interface with the PX4 Modules

The UAV Toolbox Support Package for PX4 Autopilots enables you to design controllers and estimators in Simulink and deploy to PX4 Autopilot boards. You can integrate the generated code from the Simulink models, with the PX4 flight stack and then deploy the same to the PX4 Autopilots.

The support package provides interfaces for some of the components in the PX4 architecture by using Simulink blocks. You can use these blocks as input and output for the algorithms in Simulink model.

Component in PX4 ArchitectureSimulink Block in the Support Package
ParametersRead Parameter
uORB Message Bus

PX4 uORB Read

PX4 uORB Write

PX4 uORB Message

RC InputRadio Control Transmitter
Sensors Hub

Vehicle Attitude

Accelerometer

Magnetometer

Gyroscope

GPSGPS
Position & Attitude Estimator

Vehicle Attitude

Output Driver

PX4 PWM Output

External serial communication

Serial Receive

Serial Transmit

Supported Modules to be Replaced with User-Defined Algorithms

You can replace the Position Controller and Attitude & Rate Controller modules in the general PX4 architecture with user-defined algorithms that you develop using UAV Toolbox Support Package for PX4 Autopilots.

See Also

|