MAVLink Blank Message
Create blank MAVLink message bus by specifying payload information and MAVLink message type
Since R2020b
Libraries:
UAV Toolbox /
MAVLink
Description
The MAVLink Blank Message block creates a Simulink® nonvirtual bus representing a MAVLink packet based on the specified Message ID, System ID, Component ID, Sequence, Payload information, and MAVLink message type.
Payload information is another nonvirtual bus within the MAVLink packet bus. The block creates Simulink buses for the MAVLink packet and the corresponding message that work with MAVLink Serializer and MAVLink Deserializer blocks. On each sample hit, the block outputs a blank or zero signal for the payload for the designated message type.
All elements of the bus other than the Message ID, System ID, and Component ID are
initialized to 0
. The only exception is the
mavlink_version
field in the HEARTBEAT message
of the common.xml
dialect which is initialized to
3
.
Ports
Output
Parameters
Tips
You can change the values for the desired fields in Payload bus by using a Bus Assignment block and then pass the MAVLink packet bus to the MAVLink Serializer block as an input.
Extended Capabilities
Version History
Introduced in R2020b