Modeling
Prepare model for hardware connection, add blocks to support PX4
Autopilots
Blocks
PX4 uORB Read | Read uORB data for the specified uORB topic |
PX4 uORB Write | Write uORB data for the specified uORB topic |
PX4 uORB Message | Create a blank message using specified uORB topic |
PX4 Analog Input | Measure analog voltage applied to an ADC channel |
PX4 PWM Output | Configure PWM outputs for servo motors and ESC control |
PX4 Read Position Setpoint | Read the position setpoints published by the PX4 Navigator module in the uORB topic
position_setpoint_triplet |
Serial Receive | Read data from UART or USART port on PX4 flight controller |
Serial Transmit | Send serial data to UART or USART port |
Vehicle Attitude | Read vehicle_odometry uORB topic and obtain attitude measurements |
Accelerometer | Read sensor_accel uORB topic and obtain three dimensional linear acceleration |
Gyroscope | Read sensor_gyro uORB topic and obtain three dimensional rate of rotation |
Magnetometer | Read sensor_mag uORB topic and obtain three dimensional magnetic field |
Radio Control Transmitter | Read input_rc uORB topic to obtain data from Radio Control Transmitter |
Read Parameter | Read PX4 system parameters |
Battery | Read battery_status uORB topic and obtain details about the battery's state |
I2C Master Write | Write data to I2C slave device or I2C slave device register |
I2C Master Read | Read data from I2C slave device or I2C slave device register |
GPS | Read vehicle_gps_position uORB topic and obtain GPS coordinates |
Functions
getMATFilesFromPixhawk | Retrieve MAT-files from SD card inserted on Pixhawk hardware board |
px4MATFilestitcher | Combine 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
- Port Numbers for Labels on PX4 Flight Controller Boards
Identify the UART/USART port number for the labels seen on PX4 flight controller boards
- I2C Bus Port Numbers for Labels on PX4 Autopilots
Identify the bus port number for the labels seen on PX4 flight controller boards