Engee documentation

MAVLINK Select

Page in progress.

Formation of the MAVLink message bus.

blockType: EngeeFunction

Path in the library:

/Interfaces/MAVLink/MAVLINK Select

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:

  1. add a block MAVLINK Select and set in the parameter MAVLink сообщение: the name of the message you plan to send (for example, "GPS_INPUT");

  2. feed the output bus of the unit MAVLINK Select at the entrance of the block Bus Assignment;

  3. in the block Bus Assignment Select the fields to fill in, and the block will have a separate entrance for each selected field.;

  4. send the necessary signals to these inputs (constants, calculation results, etc.); the fields that you do not change will remain zero.;

  5. 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

BusSignal

Complex numbers support

No

Parameters

Main group

# MAVLink сообщение: — the name of the message whose bus is generated by the block

Details
Default value

"GPS_INPUT"

Program usage name

m_message

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — block calculation step

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes