# MAVLink Decode

## Overview

![The MAVLink Decode Node.](/files/FlexTnLo3MGUHDmjG9YB)

**Mavlink Decode** decodes the binary data attributed to the `Message Name` (identifier of message type) and `Message` (message instance). The identifier comes from the `Dialect's` message definitions. The message instance originates from the output of [**On MAVLink Packet Received**](/incari-studio/2023.1/toolbox/communication/mavlink/events/on-mavlink-packet-received.md).

**MAVLink Communication** in **Incari** is available as a plugin and is enabled as default. However, in the case that it is disabled in the **Plugins Editor**, it will not appear in the **Project Settings** and **MAVLink Decode** will not show up in the [**Toolbox**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2023.1/overview.md). Please refer to the [**Plugins Editor**](/incari-studio/2023.1/modules/plugins.md) to find out more information.

The `Message Name` must match the identifier in the message instance. If they are the same, the binary data will be successfully decoded and outputted to their respective outputs which appear when a `Message Name` has been selected. If not, the **Node** fails to fire correctly.

When the `Message Name` is selected, more outputs on the **Node** are displayed. For example, if `Altitude` is selected as the identifier, the appropriate outputs for that message type will appear.

![MAVLink Decode Attributes Example.](/files/DIc7Llc0BUhDo1XPCdYz)

![MAVLink Decode Node Example.](/files/4qcx988qY6ygk8NcIzLs)

[**Scope**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2023.1/toolbox/communication/overview.md#scopes): **Project**, **Scene**.

## Attributes

![The MAVLink Decode Node Attributes.](/files/hjvQgTF4FAIqCXkABeHB)

| Attribute      | Type          | Description                                                                                                                                                                                                                                                                                                                                                  |
| -------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Message Name` | **Drop-down** | A particular message or command from the selected `Dialect` *XML* file chosen in [**Project Settings**](/incari-studio/2023.1/modules/project-settings/mavlink.md) to be decoded. This defaults to the `MAVLink_Common` `Dialect` in **Project Settings** as it is the only one supported and includes the *standard* `Dialect` and its *minimal* `Dialect`. |

## Inputs

| Input             | Type       | Description                                                                                                             |
| ----------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**  | A standard **Input Pulse**, to trigger the execution of the **Node**.                                                   |
| `Message`         | **Binary** | The desired `Message`, which includes the message type that will be compared to the one in the selected `Message Name`. |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |

## See Also

* [**On MAVLink Packet Received**](/incari-studio/2023.1/toolbox/communication/mavlink/events/on-mavlink-packet-received.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.incari.com/incari-studio/2023.1/toolbox/communication/mavlink/mavlink-decode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
