Main Content

Modeling

Prepare model for hardware connection, add blocks to support PX4 Autopilots

Blocks

PX4 uORB ReadRead uORB data for the specified uORB topic
PX4 uORB WriteWrite uORB data for the specified uORB topic
PX4 uORB MessageCreate a blank message using specified uORB topic
PX4 Analog InputMeasure analog voltage applied to an ADC channel
PX4 PWM OutputConfigure PWM outputs for servo motors and ESC control
Serial ReceiveRead data from UART or USART port on PX4 flight controller
Serial TransmitSend serial data to UART or USART port
Vehicle AttitudeRead vehicle_odometry uORB topic and obtain attitude measurements
AccelerometerRead sensor_accel uORB topic and obtain three dimensional linear acceleration
GyroscopeRead sensor_gyro uORB topic and obtain three dimensional rate of rotation
MagnetometerRead sensor_mag uORB topic and obtain three dimensional magnetic field
Radio Control TransmitterRead input_rc uORB topic to obtain data from Radio Control Transmitter
Read ParameterRead PX4 system parameters
BatteryRead battery_status uORB topic and obtain details about the battery's state
I2C Master WriteWrite data to I2C slave device or I2C slave device register
I2C Master ReadRead data from I2C slave device or I2C slave device register
GPSRead vehicle_gps_position uORB topic and obtain GPS coordinates

Functions

getMATFilesFromPixhawkRetrieve MAT-files from SD card inserted on Pixhawk hardware board
px4MATFilestitcherCombine multiple MAT-files retrieved from SD card into a single MAT-file

Topics

Model Configuration Parameters for PX4 Flight Controller

Parameter and configuration options for creating and running applications on PX4® flight controller

Index Numbers for Analog Channels on Pixhawk Series Controller Boards

Identify the index numbers for signals from analog channels

Featured Examples