mirror of
https://github.com/mavlink/mavlink-devguide.git
synced 2026-06-19 07:36:26 +00:00
Remove old unused translation outputs (#571)
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
# MAVLink C UART Interface Example
|
||||
|
||||
The [C-UART Interface Example](https://github.com/mavlink/c_uart_interface_example) is a simple C example of a MAVLink to UART interface for Unix-like systems.
|
||||
|
||||
The example source code demonstrates how to set up serial communication between Pixhawk and an offboard computer via USB or a telemetry radio, how to put the vehicle in offboard mode, and how to send and receive MAVLink messages over the interface.
|
||||
|
||||
Source code and instructions for how to run the example can be found in the Github repo: [mavlink/c_uart_interface_example](https://github.com/mavlink/c_uart_interface_example)
|
||||
@@ -1,54 +0,0 @@
|
||||
# MAVLink C UDP Example
|
||||
|
||||
The [MAVLink UDP Example](https://github.com/mavlink/mavlink/tree/master/examples/linux) is a simple C example that sends some data to *QGroundControl* using MAVLink over UDP. *QGroundControl* responds with heartbeats and other messages, which are then printed by this program.
|
||||
|
||||
> **Note** The example should work on any Unix-like system (Linux, MacOS, BSD, etc.). These instructions were tested on a clean *Ubuntu LTS 16.04* installation using the default version of *gcc* (5.4.0).
|
||||
|
||||
## Building/Running the Example
|
||||
|
||||
The following instructions show how to build and run the example.
|
||||
|
||||
1. [Install MAVLink](../getting_started/installation.md) and [generate](../getting_started/generate_libraries.md) the MAVLink 1.0 libraries into the **mavlink/include** directory.
|
||||
|
||||
> **Tip** Alternatively you can clone the [mavlink/mavlink](https://github.com/mavlink/mavlink/) repository and [Download prebuilt headers](../README.md#prebuilt_libraries) to the same location. We recommend that you use MAVLink 1.0 headers as some ground control software may not yet support MAVLink 2.0.
|
||||
|
||||
<span></span>
|
||||
|
||||
> **Note** You can put/generate the library wherever you like, but the build command below assumes they are located in directory named **include** below the MAVLink root directory.
|
||||
|
||||
2. Open a terminal and navigate to [examples/linux](https://github.com/mavlink/mavlink/tree/master/examples/linux)
|
||||
|
||||
3. Compile with GCC using the following command:
|
||||
|
||||
```bash
|
||||
gcc -std=c99 -I ../../include/common -o mavlink_udp mavlink_udp.c
|
||||
```
|
||||
|
||||
> **Note** The MAVLink header directory must be added to the include path. The path here assumes you are building the code from the example directory, and that have installed the headers in **mavlink/include**.
|
||||
|
||||
4. Run the executable from the terminal:
|
||||
|
||||
```bash
|
||||
./mavlink_udp
|
||||
```
|
||||
|
||||
By default, the example will listen for data on the localhost IP address, port 14551. You can specify another IP address as a command line argument (use `./mavlink_udp --help` to see usage).
|
||||
|
||||
5. Open *QGroundControl* on the same machine.
|
||||
|
||||
*QGroundControl* immediately starts broadcasting its `HEARTBEAT` on port 14551.
|
||||
|
||||
> **Note** *QGroundControl* returns data, but will not actually "connect" to the example (it will continue to display the message *Waiting for Vehicle Connection*).
|
||||
|
||||
6. The example should start displaying the received data in the terminal:
|
||||
|
||||
~/github/mavlink/examples/linux$ ./mavlink_udp
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 00 ff 00 00 00 00 00 00 06 08 c0 04 03 19 87
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 01 ff 00 00 00 00 00 00 06 08 c0 04 03 f3 f9
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
...
|
||||
@@ -1,7 +0,0 @@
|
||||
# MAVLink C UART Interface Example
|
||||
|
||||
The [C-UART Interface Example](https://github.com/mavlink/c_uart_interface_example) is a simple C example of a MAVLink to UART interface for Unix-like systems.
|
||||
|
||||
The example source code demonstrates how to set up serial communication between Pixhawk and an offboard computer via USB or a telemetry radio, how to put the vehicle in offboard mode, and how to send and receive MAVLink messages over the interface.
|
||||
|
||||
Source code and instructions for how to run the example can be found in the Github repo: [mavlink/c_uart_interface_example](https://github.com/mavlink/c_uart_interface_example)
|
||||
@@ -1,54 +0,0 @@
|
||||
# MAVLink C UDP Example
|
||||
|
||||
The [MAVLink UDP Example](https://github.com/mavlink/mavlink/tree/master/examples/linux) is a simple C example that sends some data to *QGroundControl* using MAVLink over UDP. *QGroundControl* responds with heartbeats and other messages, which are then printed by this program.
|
||||
|
||||
> **Note** The example should work on any Unix-like system (Linux, MacOS, BSD, etc.). These instructions were tested on a clean *Ubuntu LTS 16.04* installation using the default version of *gcc* (5.4.0).
|
||||
|
||||
## Building/Running the Example
|
||||
|
||||
The following instructions show how to build and run the example.
|
||||
|
||||
1. [Install MAVLink](../getting_started/installation.md) and [generate](../getting_started/generate_libraries.md) the MAVLink 1.0 libraries into the **mavlink/include** directory.
|
||||
|
||||
> **Tip** Alternatively you can clone the [mavlink/mavlink](https://github.com/mavlink/mavlink/) repository and [Download prebuilt headers](../README.md#prebuilt_libraries) to the same location. We recommend that you use MAVLink 1.0 headers as some ground control software may not yet support MAVLink 2.0.
|
||||
|
||||
<span></span>
|
||||
|
||||
> **Note** You can put/generate the library wherever you like, but the build command below assumes they are located in directory named **include** below the MAVLink root directory.
|
||||
|
||||
2. Open a terminal and navigate to [examples/linux](https://github.com/mavlink/mavlink/tree/master/examples/linux)
|
||||
|
||||
3. Compile with GCC using the following command:
|
||||
|
||||
```bash
|
||||
gcc -std=c99 -I ../../include/common -o mavlink_udp mavlink_udp.c
|
||||
```
|
||||
|
||||
> **Note** The MAVLink header directory must be added to the include path. The path here assumes you are building the code from the example directory, and that have installed the headers in **mavlink/include**.
|
||||
|
||||
4. Run the executable from the terminal:
|
||||
|
||||
```bash
|
||||
./mavlink_udp
|
||||
```
|
||||
|
||||
By default, the example will listen for data on the localhost IP address, port 14551. You can specify another IP address as a command line argument (use `./mavlink_udp --help` to see usage).
|
||||
|
||||
5. Open *QGroundControl* on the same machine.
|
||||
|
||||
*QGroundControl* immediately starts broadcasting its `HEARTBEAT` on port 14551.
|
||||
|
||||
> **Note** *QGroundControl* returns data, but will not actually "connect" to the example (it will continue to display the message *Waiting for Vehicle Connection*).
|
||||
|
||||
6. The example should start displaying the received data in the terminal:
|
||||
|
||||
~/github/mavlink/examples/linux$ ./mavlink_udp
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 00 ff 00 00 00 00 00 00 06 08 c0 04 03 19 87
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 01 ff 00 00 00 00 00 00 06 08 c0 04 03 f3 f9
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
...
|
||||
@@ -1,7 +0,0 @@
|
||||
# MAVLink C UART 接口示例
|
||||
|
||||
< 0>C-uart 接口示例 </0 > 是一个简单的 c 示例, 用于类似 unix 的系统的 mavlink 到 uart 接口。
|
||||
|
||||
示例源代码演示了如何通过 usb 或遥测无线电在 pixhawk 和离板计算机之间建立串行通信, 如何将飞行器置于非板载模式, 以及如何通过接口发送和接收 mavlink 消息。
|
||||
|
||||
源代码和如何运行该示例的说明可以在 github 存储库中找到: [mavlink/c_uart_interface_example](https://github.com/mavlink/c_uart_interface_example)
|
||||
@@ -1,54 +0,0 @@
|
||||
# MAVLink C UDP 示例
|
||||
|
||||
< 0>MAVLink udp 示例 </0 > 是一个简单的 c 示例, 它通过 udp 使用 mavlink 向 *QGroundControl* 发送一些数据。 QGroundControl响应检测信号和其他消息, 然后由此程序打印。
|
||||
|
||||
> **Note**该示例应适用于任何类似 unix 的系统 (linux、macos、bsd 等)。 这些说明在使用 *gcc* (5.4.0) 的默认版本 </em> 安装时进行了干净的 < 0>Ubuntu lts 16.04 上的测试。
|
||||
|
||||
## 构建/运行示例
|
||||
|
||||
下面的说明演示如何生成和运行该示例。
|
||||
|
||||
1. [安装 MAVLink](../getting_started/installation.md) 和[生成](../getting_started/generate_libraries.md) MAVLink 1.0 的图书馆为**mavlink/include** 目录。
|
||||
|
||||
> **Tip**或者, 您可以克隆 [mavlink/mavlink](https://github.com/mavlink/mavlink/) 存储库, 并将 "2>Download 预构建的头" </2 > 克隆到同一位置。 我们建议您使用 MAVLink 1.0 头,因为一些地面控制软件可能不支持 MAVLink 2.0。
|
||||
|
||||
<span></span>
|
||||
|
||||
> **注意** 您可以在您喜欢的地方放置/生成的库,但下面的建设命令假定它们位于 **包括** 在 MAVLink 根目录下。
|
||||
|
||||
2. 打开终端并导航到 [实例/linux](https://github.com/mavlink/mavlink/tree/master/examples/linux)
|
||||
|
||||
3. 使用下列命令编译GCC:
|
||||
|
||||
```bash
|
||||
gc -std=c99 -I./../包括/common-o mavlink_udp mavlink_udp.c
|
||||
```
|
||||
|
||||
> **注意** MAVLink 标题目录必须添加到包含路径。 这里的路径假设你正在从示例目录中创建代码,并在**mavlink/include**上安装了头部。
|
||||
|
||||
4. 从终端运行可执行文件:
|
||||
|
||||
```bash
|
||||
/mavlink_udp
|
||||
```
|
||||
|
||||
默认情况下,实例将接收本地主机IP地址,1451端口的数据。 您可以指定另一个 IP 地址作为命令行参数 (使用 `./mavlink_udp --mail` 查看使用)。
|
||||
|
||||
5. 在同一机器上打开 *QGroundControl*
|
||||
|
||||
*QGround Control* 立即开始在接口14501上播放其`HEAT`
|
||||
|
||||
> **注意***QGrounder Control* 返回数据,但不会实际“连接”到示例(它将继续显示*等待车辆连接*)。
|
||||
|
||||
6. 例子应该开始显示终端收到的数据:
|
||||
|
||||
~/github/mavlink/examples/linux$ ./mavlink_udp
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 00 ff 00 00 00 00 00 00 06 08 c0 04 03 19 87
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 01 ff 00 00 00 00 00 00 06 08 c0 04 03 f3 f9
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
...
|
||||
@@ -1,7 +0,0 @@
|
||||
# MAVLink C UART 接口示例
|
||||
|
||||
[C-uart 接口示例 ](https://github.com/mavlink/c_uart_interface_example) 是一个简单的 c 示例, 用于类似 unix 的系统的 mavlink 到 uart 接口。
|
||||
|
||||
示例源代码演示了如何通过 usb 或遥测无线电在 pixhawk 和离板计算机之间建立串行通信, 如何将飞行器置于非板载模式, 以及如何通过接口发送和接收 mavlink 消息。
|
||||
|
||||
源代码和如何运行该示例的说明可以在 github 存储库中找到: [mavlink/c_uart_interface_example](https://github.com/mavlink/c_uart_interface_example)
|
||||
@@ -1,54 +0,0 @@
|
||||
# MAVLink C UDP 示例
|
||||
|
||||
< 0>MAVLink udp 示例 </0 > 是一个简单的 c 示例, 它通过 udp 使用 mavlink 向 *QGroundControl* 发送一些数据。 QGroundControl响应检测信号和其他消息, 然后由此程序打印。
|
||||
|
||||
> **Note**该示例应适用于任何类似 unix 的系统 (linux、macos、bsd 等)。 These instructions were tested on a clean *Ubuntu LTS 16.04* installation using the default version of *gcc* (5.4.0).
|
||||
|
||||
## 构建/运行示例
|
||||
|
||||
下面的说明演示如何生成和运行该示例。
|
||||
|
||||
1. [安装 MAVLink](../getting_started/installation.md) 和[生成](../getting_started/generate_libraries.md) MAVLink 1.0 的图书馆为**mavlink/include** 目录。
|
||||
|
||||
> **Tip**或者, 您可以克隆 [mavlink/mavlink](https://github.com/mavlink/mavlink/) 存储库, 并将 "2>Download 预构建的头" </2 > 克隆到同一位置。 我们建议您使用 MAVLink 1.0 头,因为一些地面控制软件可能不支持 MAVLink 2.0。
|
||||
|
||||
<span></span>
|
||||
|
||||
> **注意** 您可以在您喜欢的地方放置/生成的库,但下面的建设命令假定它们位于 **包括** 在 MAVLink 根目录下。
|
||||
|
||||
2. 打开终端并导航到 [实例/linux](https://github.com/mavlink/mavlink/tree/master/examples/linux)
|
||||
|
||||
3. 使用下列命令编译GCC:
|
||||
|
||||
```bash
|
||||
gc -std=c99 -I./../包括/common-o mavlink_udp mavlink_udp.c
|
||||
```
|
||||
|
||||
> **注意** MAVLink 标题目录必须添加到包含路径。 这里的路径假设你正在从示例目录中创建代码,并在**mavlink/include**上安装了头部。
|
||||
|
||||
4. 从终端运行可执行文件:
|
||||
|
||||
```bash
|
||||
/mavlink_udp
|
||||
```
|
||||
|
||||
默认情况下,实例将接收本地主机IP地址,1451端口的数据。 您可以指定另一个 IP 地址作为命令行参数 (使用 `./mavlink_udp --mail` 查看使用)。
|
||||
|
||||
5. 在同一机器上打开 *QGroundControl*
|
||||
|
||||
*QGround Control* 立即开始在接口14501上播放其`HEAT`
|
||||
|
||||
> **注意***QGrounder Control* 返回数据,但不会实际“连接”到示例(它将继续显示*等待车辆连接*)。
|
||||
|
||||
6. 例子应该开始显示终端收到的数据:
|
||||
|
||||
~/github/mavlink/examples/linux$ ./mavlink_udp
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 00 ff 00 00 00 00 00 00 06 08 c0 04 03 19 87
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
Bytes Received: 17
|
||||
Datagram: fe 09 01 ff 00 00 00 00 00 00 06 08 c0 04 03 f3 f9
|
||||
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
|
||||
|
||||
...
|
||||
@@ -1,23 +0,0 @@
|
||||
<!-- THIS FILE IS AUTO-GENERATED: https://github.com/mavlink/mavlink/blob/master/doc/mavlink_gitbook.py -->
|
||||
|
||||
# 方言:autoquad
|
||||
|
||||
*This is a human-readable form of the XML definition file: [autoquad](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/autoquad).*
|
||||
|
||||
<span></span>
|
||||
|
||||
> **Note** MAVLink 2 有一个 ID > 255的消息,并在其描述中使用 **(MAVLink 2)** 进行标记。
|
||||
|
||||
<span id="mav2_extension_field"></span>
|
||||
|
||||
> **Note** 已添加到 MAVLink 1 消息中的 MAVLink 2 扩展字段以蓝色显示。
|
||||
|
||||
<style>
|
||||
td {
|
||||
vertical-align:top;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
{% include "_html/autoquad.html" %}
|
||||
@@ -1,23 +0,0 @@
|
||||
<!-- THIS FILE IS AUTO-GENERATED: https://github.com/mavlink/mavlink/blob/master/doc/mavlink_gitbook.py -->
|
||||
|
||||
# 方言:slugs
|
||||
|
||||
*这是一种 XML 定义文件的可读形式: [slugs.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/slugs.xml) 。*
|
||||
|
||||
<span></span>
|
||||
|
||||
> **Note** MAVLink 2 有一个 ID > 255的消息,并在其描述中使用 **(MAVLink 2)** 进行标记。
|
||||
|
||||
<span id="mav2_extension_field"></span>
|
||||
|
||||
> **Note** 已添加到 MAVLink 1 消息中的 MAVLink 2 扩展字段以蓝色显示。
|
||||
|
||||
<style>
|
||||
td {
|
||||
vertical-align:top;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
{% include "_html/slugs.html" %}
|
||||
Reference in New Issue
Block a user