MAVLINK Select
|
Page in progress. |
Formation of the MAVLink message bus.
blockType: EngeeFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package. equipment. |
Block MAVLINK Select It is designed to generate a MAVLink message bus: at the output, it automatically sets the bus with a predefined composition of the fields of the selected message and fills in all fields with zeros.
The message is specified by a single name in the parameter MAVLink сообщение:. The composition of the fields and types of the output bus is determined by this name automatically — you do not need to configure the signals in the bus editor (field compositions are given on the page MAVLink Messages).
The block is intended to be used in conjunction with the block Bus Assignment and a block MAVLINK TX:
-
add a block MAVLINK Select and set in the parameter MAVLink сообщение: the name of the message you plan to send (for example,
"GPS_INPUT"); -
feed the output bus of the unit MAVLINK Select at the entrance of the block Bus Assignment;
-
in the block Bus Assignment Select the fields to fill in, and the block will have a separate entrance for each selected field.;
-
send the necessary signals to these inputs (constants, calculation results, etc.); the fields that you do not change will remain zero.;
-
feed the tire from the outlet of the unit Bus Assignment at the entrance of the block MAVLINK TX.
Thus, a tire of the desired type is created without manual configuration.: MAVLINK Select guarantees the correct set of fields and their order, and Bus Assignment fills in only those fields that are needed in the model.
Ports
Output
#
GPS_INPUT
—
a bus with fields of the selected message filled with zeros
the tire
Details
| Data types |
|
| Complex numbers support |
No |
Parameters
Main group
# MAVLink сообщение: — the name of the message whose bus is generated by the block
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта, с: — block calculation step
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
