Main Content

I2C Bus Port Numbers for Labels on PX4 Autopilots

The I2C Master Read and I2C Master Write blocks in the UAV Toolbox Support Package for PX4® Autopilots support sending and receiving data using the bus on the PX4 flight controller board.

This section lists the mapping of the different port labels on the PX4 flight controller board to the bus port numbers that you can select when configuring the blocks in your Simulink model.

Bus Mapping for Supported Target Hardware Boards

Target Hardware SupportedBus Mapping Diagram
Pixhawk 1

Pixhawk 2.1 (Cube)

Pixhawk 4