MAVLINK Setup
|
Page in progress. |
Setting up a MAVLink connection.
blockType: EngeeFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package. equipment. |
Block MAVLINK Setup opens a MAVLink connection over TCP or UDP and outputs its handle. The descriptor is common to all blocks of receiving and transmitting data: feed it to the input conn of each block MAVLINK RX and MAVLINK TX models, and they will all exchange messages over the same connection. Additional blocks MAVLINK Setup They are only needed if the model needs to work with multiple MAVLink message sources at the same time.
To use the block:
-
add a block MAVLINK Setup go to the model canvas and configure the connection parameters (transport, address, port);
-
connect the output of the conn block to the inputs of the conn blocks MAVLINK RX and MAVLINK TX;
When the simulation is completed, the connection is closed automatically.
After the connection is established, the block automatically sends messages HEARTBEAT approximately once per second, representing Engee as a ground control station (GCS, MAV_TYPE_GCS).
Ports
Output
#
conn
—
MAVLink connection descriptor
scalar
Details
| Data types |
|
| Complex numbers support |
No |
Parameters
Main group
#
Транспорт: —
the type of network transport used for data exchange
tcp | udp
Details
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# IP: — The IP address or hostname of the MAVLink device
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Порт: — network port of the MAVLink device
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Идентификатор отправляющей системы: — The MAVLink system ID that represents the node
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Идентификатор компонента системы: — The MAVLink component ID that represents the node
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта, с: — block calculation step
Details
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
