# MAVLink Decode

## Overview

![The MAVLink Decode Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-41b9ada2fbd53841cd21c44d6c94e7e76b69c618%2Fmavlinkdecodenode20241.png?alt=media)

**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**](https://docs.incari.com/incari-studio/toolbox/communication/mavlink/events/on-mavlink-packet-received).

**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/2025.1/overview.md). Please refer to the [**Plugins Editor**](https://docs.incari.com/incari-studio/modules/plugins) 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.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-ccbfe499b27004951e22afd393424d5e4adb2dae%2Fmavlinkattsexample.png?alt=media)

![MAVLink Decode Node Example.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-1ca3ac9378b3d19480cb664d3d9ada8688c61441%2Fmavlinkdecodeexample.png?alt=media)

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

## Attributes

![The MAVLink Decode Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-b2e00a4cba5cd30d861a1674069593c884424e45%2Fmavlinkdecodeatts.png?alt=media)

| Attribute      | Type          | Description                                                                                                                                                                                                                                                                                                                                                               |
| -------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Message Name` | **Drop-down** | A particular message or command from the selected `Dialect` *XML* file chosen in [**Project Settings**](https://docs.incari.com/incari-studio/modules/project-settings/mavlink) 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**](https://docs.incari.com/incari-studio/toolbox/communication/mavlink/events/on-mavlink-packet-received)
