MAVLINK TX
|
Page in progress. |
Sending MAVLink messages.
blockType: EngeeFunction
|
Path in the library:
|
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.
Parameters
Main group
# MAVLink сообщения на передачу: — array of names of messages to be sent
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта, с: — the block calculation step for sending MAVLink messages
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
