Engee documentation

MAVLINK TX

Page in progress.

Sending MAVLink messages.

blockType: EngeeFunction

Path in the library:

/Interfaces/MAVLink/MAVLINK TX

Description

To work with the block, install/update the support package. equipment.

Block MAVLINK TX collects MAVLink messages from the input buses and sends them through the common connection created by the block MAVLINK Setup (the descriptor is fed to the conn input).

The set of messages to be sent is set by an array of names in the parameter MAVLink сообщения на передачу:. For each name from the array, the block automatically expands the input bus with a pre-prepared composition of the fields of this message; the order of the input buses coincides with the order of the names in the array, and the composition of the fields is given on the page MAVLink Messages.

Messages are sent at each step of the calculation: the block does not wait for confirmation of receipt from the recipient and does not block the calculation step. If the connection is not established (the conn handle is not positive), no messages are sent.

A typical use case is the substitution of sensor data for autopilot in simulation mode: for example, a tire GPS_INPUT They are filled in with the generated coordinates and sent to the autopilot to investigate its behavior with a given trajectory or a noisy GPS signal.

Ports

Input

# conn — MAVLink connection descriptor
scalar

Details
Data types

Float64

Complex numbers support

No

# GPS_INPUT — the bus with the fields of the message being sent
the tire

Details
Data types

BusSignal

Complex numbers support

No

Parameters

Main group

# MAVLink сообщения на передачу: — array of names of messages to be sent

Details
Default value

["GPS_INPUT"]

Program usage name

m_snd_messages

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — the block calculation step for sending MAVLink messages

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes