Develop Algorithms and Deploy on PX4 Autopilot
Develop algorithms and prepare model for deploying on 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 |
PX4 CAN Receive | Receive message from CAN network |
PX4 CAN Transmit | Transmit message to CAN network |
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 |
Troubleshooting
Troubleshooting Deploy to Hardware Issues
Solve the problems when you try to deploy the Simulink model to Pixhawk Series flight controllers
Troubleshooting Flash Overflow Issues with Pixhawk 1
Solve the flash overflow issues when you try to deploy the Simulink model to Pixhawk 1
Troubleshooting Running Out of File Descriptor Issues
Solve the running out of file descriptor issues