PX4 CAN Receive
Receive message from CAN network
- Library:
UAV Toolbox Support Package for PX4 Autopilots
Description
The PX4 CAN Receive block receives messages from a Controller Area Network (CAN) network by using the PX4 Autopilot CAN port connected to the hardware.
Specify the message type and its properties using the block parameters dialog box.
If you simulate a model that contains the PX4 CAN Receive block without connecting the hardware, the block outputs zeros. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Also, if there are no messages on the CAN bus, the block outputs zeros.
Note
To avoid conflict with PX4 UAVCAN, disable UAVCAN before working with PX4 CAN
blocks. To disable, set the PX4 parameter, UAVCAN_ENABLE
to 0
. For more
information, see Finding/Updating Parameters.
Limitations
PX4 CAN Receive blocks do not support Connected IO simulation.
All PX4 CAN Receive blocks must have the same Data is input as parameter.
Ports
Output
Parameters
Version History
Introduced in R2022b