PX4 uORB Read
Read uORB data for the specified uORB topic
Add-On Required: This feature requires the UAV Toolbox Support Package for PX4 Autopilots add-on.
Libraries:
UAV Toolbox Support Package for PX4 Autopilots /
PX4 uORB Read and Write Blocks
Description
The PX4 uORB Read block creates a Simulink® nonvirtual bus that corresponds to the specified uORB topic.
On each simulation step, the block checks if a new message is available on the specific topic. If a new message is available, the block retrieves the message and converts it to a Simulink bus signal. The Msg port outputs this new message. If a new message is not available, Msg outputs the last received uORB message. If a message has not been received since the start of the simulation, Msg outputs a blank message.
During Normal mode simulation, the block outputs zeroes.
During Connected I/O simulation, this block reads data from the peripherals of the hardware.
Examples
Ports
Output
Parameters
Version History
Introduced in R2018b