Send serial data to UART or USART port
UAV Toolbox Support Package for PX4 Autopilots / PX4 Utility Blocks
The Serial Transmit block sends serial data to the Universal Asynchronous Receiver Transmitter (UART) port or the Universal Synchronous and Asynchronous Receiver Transmitter (USART) port on the PX4 flight controller.
The block accepts data as an N-by-1 or 1-by-N array and sends the same to the specified UART or USART port. The properties for each port for serial communication are mentioned in the Configuration Parameters dialog box in Simulink (go to Configuration Parameters > Hardware Implementation > /dev/tty* pane).
The block inherits the data type from the signal at the input port.
Data — Data to be sent to the UART or USART port
The port accepts values as an N-by-1 or 1-by-N array.
Port — UART or USART port for serial communication
/dev/ttyACM0 (default) |
Enter the name of the UART or USART port on the PX4 flight controller through which the block transmits the accepted data. To view the mapping between UART/USART ports and the labels on the Pixhawk flight controller, see .
Introduced in R2018b