<span style="float:right; padding:10px; margin-right:20px;"><a href="https://github.com/mavlink/mavlink"><img src="../assets/site/logo_mavlink_small.png" title="MAVLink 로고" width="250px" /></a></span>

# MAVLink 개발자 안내서

MAVLink는 매우 가벼운 드론(과 드론 구성 부품간 온보드) 통신용 메시지 프로토콜입니다.

MAVLink는 임의송신-가입 방식 및 점대점 방식을 혼용한 최신 설계 규칙을 따릅니다. 데이터 스트림은 **토픽**으로 전송하는 방식이며, [미션 프로토콜](services/mission.md) 또는 [매개변수 프로토콜](services/parameter.md)과 같은 설정 하위 프로토콜은 재전송 기능을 지닌 점대점 방식입니다.

Messages are [defined within XML files](messages/index.md). 각 XML 파일은 각 MAVLink 시스템에서 "고유 메시지"를 참조하는 식으로 지원하는 메시지 집합을 정의합니다. *대부분*의 지상 관제 머신과 오토파일럿에서 구현한 참조 메시지 집합은 [common.xml](messages/common.md)에 정의했습니다(대부분의 고유 메시지는 이 정의를 *기반으로 구성* 합니다).

[Code generators](getting_started/generate_libraries.md) create software libraries for [specific programming languages](#supported_languages) from these XML message definitions, which can then be used by drones, ground control stations, and other MAVLink systems to communicate. The generated libraries are typically MIT-licensed, and can therefore be *used* without limits in any closed-source application without publishing the source code of the closed-source application.

::: info The C reference implementation is a header-only library that is highly optimized for resource-constrained systems with limited RAM and flash memory. It is field-proven and deployed in many products where it serves as interoperability interface between components of different manufacturers. :::

MAVLink는 2009년 초반 Lorenz Meier가 처음으로 출시했으며, 현재는 [두드러지는 규모의 기여자가 있습니다](https://github.com/mavlink/mavlink/graphs/contributors).

## 주요 기능

- 매우 효율적입니다. MAVLink 1은 시작 부호와 패킷 손실 탐지 부분을 포함하여 패킷당 8바이트의 크기를 가집니다. MAVLink 2는 14바이트의 크기를 가집니다(만, 더 안전하고 기능 확장에 용이합니다). MAVLink는 추가 프레이밍이 필요가 없기 때문에 통신 대역폭을 상당히 제한하는 여건에서도 프로그램에 매우 안성맞춤입니다.
- 상당히 견고합니다. MAVLink는 여건이 혹독한 다양한 통신 채널(높은 지연율/잡음) 환경에서 다양한 기체, 지상 관제국(및 타 노드)간의 통신 수행 목적으로 2009년부터 사용했습니다. 패킷 손실, 손상, 인증 수단을 제공합니다.
- [Many different programming languages](#supported_languages) can be used, running on numerous microcontrollers/operating systems (including ARM7, ATMega, dsPic, STM32 and Windows, Linux, MacOS, Android and iOS).
- 네트워크에서 최대 255대의 시스템(기체, 지상 관제국)을 동시에 운용할 수 있습니다.
- 보드 내외간 통신이 가능합니다(GCS와 드론간의 통신, 드론 오토파일럿과 MAVLink 통신 기능을 갖춘 드론 카메라와의 통신).

## Language/Generator List {#supported_languages}

The sections below lists MAVLink generators and their associated programming languages.

### MAVLink Project Generators/Languages

The MAVLink organisation provides (and supports) the [mavgen](getting_started/generate_libraries.md#mavgen), [mavgenerate](getting_started/generate_libraries.md#mavgenerate) and [rust-mavlink](https://github.com/mavlink/rust-mavlink) tools.

| 언어                            | 제너레이터                                                   | MAVLink v1 | [MAVLink 2](guide/mavlink_2.md) | [Signing](guide/message_signing.md) | 참고                                                                                                                                                                                                |
|:----------------------------- |:------------------------------------------------------- |:----------:|:-------------------------------:|:----------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| C                             | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | &check;                             | MAVLink 프로젝트 참고 구현입니다. [생성 라이브러리](#prebuilt_libraries)는 프로토콜 버전 별로 출시합니다.                                                                                                                         |
| C++11                         | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | &check;                             |                                                                                                                                                                                                   |
| 파이썬 (2.7+, 3.3+)              | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | &check;                             | Python bindings. Library also available on PyPi: [pymavlink](https://pypi.org/project/pymavlink/).                                                                                                |
| C#                            | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             |                                     |                                                                                                                                                                                                   |
| Objective C                   | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |                                 |                                     |                                                                                                                                                                                                   |
| Java                          | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             |                                     | Dronefleet offers a more idiomatic generated library                                                                                                                                              |
| JavaScript (Stable)           | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | &cross;                             | Old mavgen JavaScript binding (has known bugs and no test suite).                                                                                                                                 |
| JavaScript (NextGen)          | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | &check;                             | New mavgen JavaScript library. Full test suite, resulting library produces binary compatible output compared to C bindings. Slightly incompatible with previous version, but not hard to migrate. |
| TypeScript/JavaScript         | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | &cross;                             | TypeScript classes which can be used with [node-mavlink](https://github.com/ifrunistuttgart/node-mavlink).                                                                                        |
| Lua                           | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | &cross;                             | Lua library. Does not support zero trimming of MAVLink 2 messages.                                                                                                                                |
| WLua (Wireshark Lua bindings) | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |             &check;             | NA                                  | Allow MAVLink-aware packet inspection in Wireshark. Generated lua scripts should be copied to the Wireshark plugin directory (e.g. **wireshark/plugins/mavlink.lua**).                            |
| Swift                         | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |                                 |                                     |                                                                                                                                                                                                   |
| Rust                          | [rust-mavlink](https://github.com/mavlink/rust-mavlink) |  &check;   |             &check;             |                                     | Rust MAVLink generated code. Has [tests](https://github.com/mavlink/rust-mavlink/tree/master/tests) and [docs](https://docs.rs/mavlink/latest/mavlink/).                                          |
| Ada                           | [mavgen](getting_started/generate_libraries.md#mavgen)  |  &check;   |                                 |                                     |                                                                                                                                                                                                   |

<!-- reference links for table above -->

### External Generators/Languages

The following generators are delivered by independent projects (and supported by those projects).

| 언어                        | 제너레이터                                                               | MAVLink v1 | [MAVLink 2](guide/mavlink_2.md) | [Signing](guide/message_signing.md) | 참고                                                                                                                                                                                                                                                                                                                                                                                                                 |
|:------------------------- |:------------------------------------------------------------------- |:----------:|:-------------------------------:|:----------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| C                         | [fastMavlink](https://github.com/olliw42/fastmavlink)               |  &check;   |             &check;             | &cross;                             | Highly efficient C library with python code generators. Has [docs](https://github.com/olliw42/fastmavlink), [examples](https://github.com/olliw42/fastmavlink/tree/master/examples), [test](https://github.com/olliw42/fastmavlink/tree/master/tests), support for [routing](https://github.com/olliw42/fastmavlink#router) and [mavgen mimicry](https://github.com/olliw42/fastmavlink#pymavlink-mavgen-mimicry). |
| Clojure                   | [clj-mavlink](https://github.com/WickedShell/clj-mavlink)           |  &check;   |             &check;             | &check;                             | Clojure MAVLink Bindings.                                                                                                                                                                                                                                                                                                                                                                                          |
| Dart                      | [dart_mavlink](https://github.com/nus/dart_mavlink)                 |  &check;   |             &check;             | &cross;                             | MAVLink library for Dart.                                                                                                                                                                                                                                                                                                                                                                                          |
| Go                        | [gomavlib](https://github.com/gswly/gomavlib)                       |  &check;   |             &check;             | &check;                             | Go library with support for MAVLink 1, 2 and signing, test suite, and [documentation](https://pkg.go.dev/github.com/aler9/gomavlib)                                                                                                                                                                                                                                                                                |
| Go                        | [go-mavlink1](https://github.com/mgr9525/go-mavlink1)               |  &check;   |             &cross;             | &cross;                             | Golang MAVLink v1                                                                                                                                                                                                                                                                                                                                                                                                  |
| Haskell                   | [HaskMavlink](https://github.com/SweeWarman/HaskMavlink)            |  &cross;   |             &check;             | &cross;                             |                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Java                      | [dronefleet/mavlink](https://github.com/dronefleet/mavlink)         |  &check;   |             &check;             | &check;                             | *Idiomatic* Java SDK/API for MAVLink. Provides a gradle plugin for the code generator.                                                                                                                                                                                                                                                                                                                             |
| TypeScript/JavaScript/npm | [node-mavlink](https://github.com/padcom/node-mavlink#readme)       |  &check;   |             &check;             | &check;                             | TypeScript code generator for data classes with tools to receive and send messages. [Getting started](https://github.com/padcom/node-mavlink#getting-started) guide and inline JSDoc, along with some [examples](https://github.com/padcom/node-mavlink/tree/master/examples).                                                                                                                                     |
| Kotlin                    | [mavlink-kotlin](https://github.com/divyanshupundir/mavlink-kotlin) |  &check;   |             &check;             | &check;                             | Uses codegen instead of reflection for performance with Coroutines, RxJava2 and RxJava3 support. Provides a code generator Gradle plugin.                                                                                                                                                                                                                                                                          |

## 미리 빌드한 MAVLink C 라이브러리 {#prebuilt_libraries}

*C* MAVLink Source Files (only) are auto-generated for the latest versions of all message [specifications/dialects](messages/index.md) (for both MAVLink 1 and 2):

- [c_library_v2](https://github.com/mavlink/c_library_v2) (MAVLink 2)
- [c_library_v1](https://github.com/mavlink/c_library_v1) (MAVLink 1)

[Using C Libraries](mavgen_c/index.md) explains how to use these libraries.

## 지원 {#support}

The [Support](about/support.md) topic contains information about the [mailing list](https://groups.google.com/forum/#!forum/mavlink), reporting bugs/issues, and joining the [dev call](about/support.md#dev_call).

## 기여

The [Contributing Guide](contributing/contributing.md) explains the contribution model and the main areas where you can help.

## 라이선스

The message definition XML files and the generated [C-language version of MAVLink](#prebuilt_libraries) (a header-only library) are made available under the MIT-licence. MAVLink can therefore be *used* in any closed-source application without publishing the source code of the closed-source application. See the [COPYING](https://github.com/mavlink/mavlink/blob/master/COPYING) file for more information.

The [MAVLink generator toolchain](https://github.com/mavlink/mavlink/) is licensed under the terms of the Lesser General Public License (version 3) of the Free Software Foundation (LGPLv3).

This documentation is licensed under *CC BY 4.0* ([Human readable overview](https://creativecommons.org/licenses/by/4.0/) | [LICENSE](https://github.com/mavlink/mavlink-devguide/blob/master/LICENSE)).

## 운영

The MAVLink protocol is hosted under the governance of the [Dronecode Project](https://www.dronecode.org/).

<a href="https://www.dronecode.org/" style="padding:20px" ><img src="../assets/site/logo_dronecode.png" alt="Dronecode Logo" width="110px"/></a>
<a href="https://www.linuxfoundation.org/projects" style="padding:20px;"><img src="../assets/site/logo_linux_foundation.png" alt="Linux Foundation Logo" width="80px" /></a>

<div style="padding:10px">&nbsp;</div>
