Engee documentation

MAVLINK Setup

Page in progress.

Setting up a MAVLink connection.

blockType: EngeeFunction

Path in the library:

/Interfaces/MAVLink/MAVLINK Setup

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:

  1. add a block MAVLINK Setup go to the model canvas and configure the connection parameters (transport, address, port);

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

Float64

Complex numbers support

No

Parameters

Main group

# Транспорт: — the type of network transport used for data exchange
tcp | udp

Details
Values

tcp | udp

Default value

udp

Program usage name

m_transport

Tunable

No

Evaluatable

Yes

# IP: — The IP address or hostname of the MAVLink device

Details
Default value

127.0.0.1

Program usage name

m_ip

Tunable

No

Evaluatable

Yes

# Порт: — network port of the MAVLink device

Details
Default value

14551

Program usage name

m_port

Tunable

No

Evaluatable

Yes

# Идентификатор отправляющей системы: — The MAVLink system ID that represents the node

Details
Default value

255

Program usage name

m_system_id

Tunable

No

Evaluatable

Yes

# Идентификатор компонента системы: — The MAVLink component ID that represents the node

Details
Default value

190

Program usage name

m_source_component_id

Tunable

No

Evaluatable

Yes

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

Details
Default value

-1

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes