# MAVProxy

**MAVProxy** 是一款开源的地面控制站（GCS）兼无人机 MAVLink 代理，以 Python 编写，主要通过命令行操作。它可连接一个或多个 MAVLink 端点，记录并转发遥测数据，并提供一个交互式命令解释器用于控制飞行器<sup>[1](https://manpages.debian.org/unstable/mavproxy/mavproxy.py.1.en.html)</sup>。它被设计为一款极简、可移植、可扩展的 GCS，适用于任何支持 MAVLink 协议的自主系统，例如运行 [ArduPilot](https://www.edgepedia.org/zh/ardupilot) 的系统，并可与 [Mission Planner](https://www.edgepedia.org/zh/mission-planner)、APM Planner 2 或 [QGroundControl](https://www.edgepedia.org/zh/qgroundcontrol) 等图形化地面站配合使用<sup>[2](https://docs.ardupilot.org/mavproxy/index.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定位 | 以 Python 编写的 MAVLink 代理兼命令行地面控制站<sup>[1](https://manpages.debian.org/unstable/mavproxy/mavproxy.py.1.en.html)</sup> |
| 起源 | 由 CanberraUAV 开发，用于 2012 年 Outback Challenge，旨在配合 ArduPilot 实现伴飞计算和多数据链路<sup>[3](https://github.com/ArduPilot/MAVProxy/blob/master/setup.py)</sup><sup> • </sup><sup>[4](https://ardupilot.ardupilot.org/mavproxy/index.html)</sup> |
| 许可证 | GNU 通用公共许可证 v3 或更高版本<sup>[5](https://github.com/ArduPilot/MAVProxy)</sup> |
| 维护者 | Andrew Tridgell、Peter Barker 和 Stephen Dade<sup>[4](https://ardupilot.ardupilot.org/mavproxy/index.html)</sup> |
| 可扩展性 | 可加载模块运行于并行线程中，通过 `module load modulename` 加载<sup>[6](https://ardupilot.org/mavproxy/docs/modules/index.html)</sup> |
| 转发 | MAVLink 数据包可通过 UDP 或 TCP 转发至多个远程设备，通常使用端口 14550<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup> |
| 飞行器数量限制 | 每个会话仅支持一架飞行器；多架飞行器需使用多个会话<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup> |
| 分发方式 | PyPI 上的 Python 包，另有兼容 Windows 7 及以上版本的 Windows 安装程序<sup>[8](https://shop.ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html)</sup> |

## 用途与设计

MAVProxy 的文档将其描述为一款强大的基于命令行的“开发者”地面站。其核心是一个支持命令 Tab 补全的控制台应用，可选附加模块则提供基本图形界面<sup>[4](https://ardupilot.ardupilot.org/mavproxy/index.html)</sup>。极简设计使其足够轻量，可在小型上网本上运行，并且具有良好的可移植性：它应能在任何具备 Python、pyserial 和 `select()` 函数调用的 POSIX 操作系统上运行，涵盖 Linux、OS X、Windows 等<sup>[4](https://ardupilot.ardupilot.org/mavproxy/index.html)</sup>。

一项标志性能力是遥测转发。单个 MAVProxy 实例可以接收来自无人机的数据流，并通过 `--out` 选项，经串口、USB 或网络链路将 MAVLink 数据包重新发送至任意数量的远程设备，这在多台地面站计算机共享一条无线电链路、或数据流需经中间节点中继时尤为有用<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup>。MAVLink 通常使用端口 14550 进行基于 IP 的数据包转发，但也可使用其他端口<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup>。UDP 广播模式 `udpbcast:<ip>:<port>` 以广播方式启动，随后锁定第一个连接的客户端<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup>。同时支持多个 `--master` 输入；MAVProxy 会自动将来自独立冗余链路的数据包整理为单一数据流<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup>。

项目文档指出，MAVProxy 一次只能连接一架飞行器，控制多架飞行器需要为每架飞行器各开一个 MAVProxy 会话<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup>。

## 模块

MAVProxy 通过模块进行扩展，模块与主程序并行运行于独立线程中，以维持整体稳定性。模块包括 GUI 组件以及诊断和监控应用，运行时通过 `module load`、`module unload`、`module reload` 和 `module list` 进行管理<sup>[6](https://ardupilot.org/mavproxy/docs/modules/index.html)</sup>。

默认模块集涵盖核心地面站功能：`adsb`（ADS-B 数据支持）、`arm`（解锁/上锁处理）、`param`（参数处理）、`wp`（航点处理）、`fence`（地理围栏管理）、`rally`（集结点控制）、`terrain`（地形处理）、`output`（MAVLink 输出控制）、`link`（链路控制）、`log`（日志传输）、`mode`、`rc`、`relay`、`signing`、`calibration`、`battery`、`graph`、`layout`、`misc`、`cmdlong`、`auxopt`、`tuneopt`、`ftp` 和 `chat`<sup>[6](https://ardupilot.org/mavproxy/docs/modules/index.html)</sup>。可选模块则增加诸如 ADS-B 和 AIS 追踪、天线指向、移动地图、任务编辑器、摇杆输入、NTRIP 注入、差分 GPS、固件管理、云台管理、文本转语音和集群控制等能力<sup>[6](https://ardupilot.org/mavproxy/docs/modules/index.html)</sup>。

**图形控制台。** `console` 模块是一个显示无人机当前状态的 GUI。菜单栏下方显示飞行模式和解锁状态、GPS 状态、系统电压、遥测无线电链路质量、惯性系统可用性、磁力计、空速传感器以及声呐/激光雷达可用性、姿态控制系统（AHRS 和 EKF）状态、地理围栏状态和地形数据集可用性；再往下几行显示选定传感器的读数。菜单栏提供对 MAVProxy 全局设置的访问，以及航点、集结点和地理围栏命令的快捷入口<sup>[9](https://shop.ardupilot.org/mavproxy/docs/modules/console.html)</sup>。

## 连接与启动

在最简单的形式下，MAVProxy 只需一个 USB 端口地址或网络地址即可连接。对于单台自动驾驶仪，`--master` 选项并非必需，因为 MAVProxy 会自动检测正确的端口；例如 Linux 上的 `mavproxy.py --master=/dev/ttyUSB0` 和 Windows 上的 `mavproxy --master=COM14`<sup>[10](https://ardupilot.org/mavproxy/docs/getting_started/quickstart.html)</sup>。网络连接需指定流类型和地址，例如 `--master=tcp:192.168.1.1:14550` 或 `--master=udp:127.0.0.1:14550`<sup>[10](https://ardupilot.org/mavproxy/docs/getting_started/quickstart.html)</sup>。MAVProxy 通常会自动检测正确的波特率，也可通过 `--baudrate` 覆盖<sup>[10](https://ardupilot.org/mavproxy/docs/getting_started/quickstart.html)</sup>。

启动选项可加载 GUI 模块（`--console`、`--map`）、设置 MAVLink 流速率、将程序作为后台守护进程运行，以及通过 `--moddebug` 控制调试输出，其中值为 3 时对于调试 MAVProxy 及其模块的崩溃或错误很有用<sup>[7](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)</sup>。

## 与 ArduPilot SITL 配合使用

开发者常使用 MAVProxy 配合软件在环（SITL）模拟器测试新的 ArduPilot 构建<sup>[4](https://ardupilot.ardupilot.org/mavproxy/index.html)</sup>。ArduPilot 的 `sim_vehicle.py` 启动脚本会自动构建 SITL 固件、加载仿真模型、启动模拟器、设置飞行器参数并启动 MAVProxy GCS<sup>[11](https://ardupilot.ardupilot.org/dev/docs/using-sitl-for-ardupilot-testing.html)</sup>。在标准 SITL 架构中，MAVProxy 连接到 TCP 端口 5760 上的 SERIAL0，将模拟遥控输入发送至 UDP 端口 5501，并将 MAVLink 转发至 UDP 端口 14550 上的地面站<sup>[12](https://ardupilot.ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html)</sup>。

由于 MAVProxy 提供简单一致的命令行界面，ArduPilot 的开发文档使用它来描述设置参数等操作，而这些操作也可在任何 GCS 中完成<sup>[11](https://ardupilot.ardupilot.org/dev/docs/using-sitl-for-ardupilot-testing.html)</sup>。通过使用 MAVProxy 将 UDP 数据包转发至各 GCS 的网络地址，可将多个地面站接入同一个 SITL 仿真<sup>[11](https://ardupilot.ardupilot.org/dev/docs/using-sitl-for-ardupilot-testing.html)</sup>。

## 安装

MAVProxy 以 Python 包形式在 PyPI 上分发，前置依赖包需单独安装；在基于 Debian 的系统上包括 `python3-wxgtk4.0`，无头（非 GUI）运行时可跳过 wxPython 包<sup>[8](https://shop.ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html)</sup>。完整的 Windows 安装程序 `MAVProxySetup-latest.exe` 可从 ArduPilot 固件服务器获取，兼容 [Windows 7](https://www.edgepedia.org/zh/windows-7) 及以上版本；[Windows 10](https://www.edgepedia.org/zh/windows-10) 用户也可选择在 [Windows Subsystem for Linux](https://www.edgepedia.org/zh/windows-subsystem-for-linux) 下运行 MAVProxy，通常比原生安装程序更稳定<sup>[8](https://shop.ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html)</sup>。

## 历史与发展

MAVProxy 最初由 CanberraUAV 开发，旨在配合 ArduPilot 实现伴飞计算和多数据链路的使用，项目安装配置文件声明其为 2012 年 Outback Challenge 而开发，其中包含一个用于 CanberraUAV 搜救系统的模块<sup>[4](https://ardupilot.ardupilot.org/mavproxy/index.html)</sup><sup> • </sup><sup>[3](https://github.com/ArduPilot/MAVProxy/blob/master/setup.py)</sup>。GitHub 仓库将其描述为以 Python 编写的 MAVLink 地面站，作为 CanberraUAV Outback Challenge 参赛团队工作的一部分开发<sup>[5](https://github.com/ArduPilot/MAVProxy)</sup>。

项目由 Andrew Tridgell、Peter Barker 和 Stephen Dade 维护，主要开发由 Andrew Tridgell 和 Peter Barker 负责，Stephen Dade 为 Windows 维护者，Rhys Mainwaring 为 [MacOS](https://www.edgepedia.org/zh/macos) 维护者<sup>[4](https://ardupilot.ardupilot.org/mavproxy/index.html)</sup><sup> • </sup><sup>[5](https://github.com/ArduPilot/MAVProxy)</sup>。发布遵循 1.8.x 版本系列；GitHub 上的发布列表显示 v1.8.75 为最新标记版本，由 Tridgell 发布<sup>[13](https://github.com/ArduPilot/MAVProxy/releases)</sup>。

## 在地面站中的定位

与 Mission Planner 和 QGroundControl 等图形化地面站相比，MAVProxy 面向命令行构建，默认不提供完整的图形用户界面；ArduPilot 的一个 2019 年 [Google Summer of Code](https://www.edgepedia.org/zh/google-summer-of-code) 项目指出，这使其比那些替代方案更难使用，并提出了基于 GUI 的参数处理和多飞行器模块来弥补这一差距<sup>[14](https://summerofcode.withgoogle.com/archive/2019/projects/5411701640396800)</sup>。一篇航空航天研究文章中的对比表将 MAVProxy 的主要用途描述为命令行 GCS 和脚本编写，要求高级用户技能，与 QGroundControl 和 Mission Planner 侧重任务规划形成对比<sup>[15](https://www.frontierspartnerships.org/journals/aerospace-research-communications/articles/10.3389/arc.2025.14524/full)</sup>。其转发角色也使其成为地面控制站、伴飞计算机和自动驾驶仪之间的通信代理，支持包括串口和网络链路在内的多种传输层<sup>[16](https://journal.hep.com.cn/dav/EN/PDF/10.70322/dav.2025.10013)</sup>。

## References

1. [mavproxy.py(1) Debian Manpage](https://manpages.debian.org/unstable/mavproxy/mavproxy.py.1.en.html)
2. [MAVProxy documentation, index](https://docs.ardupilot.org/mavproxy/index.html)
3. [MAVProxy setup.py, GitHub](https://github.com/ArduPilot/MAVProxy/blob/master/setup.py)
4. [MAVProxy documentation, main page](https://ardupilot.ardupilot.org/mavproxy/index.html)
5. [ArduPilot/MAVProxy GitHub repository](https://github.com/ArduPilot/MAVProxy)
6. [Modules, MAVProxy documentation](https://ardupilot.org/mavproxy/docs/modules/index.html)
7. [Startup Options, MAVProxy documentation](https://ardupilot.org/mavproxy/docs/getting_started/starting.html)
8. [Download and Installation, MAVProxy documentation](https://shop.ardupilot.org/mavproxy/docs/getting_started/download_and_installation.html)
9. [Graphical Console, MAVProxy documentation](https://shop.ardupilot.org/mavproxy/docs/modules/console.html)
10. [Quickstart, MAVProxy documentation](https://ardupilot.org/mavproxy/docs/getting_started/quickstart.html)
11. [Using SITL, ArduPilot dev documentation](https://ardupilot.ardupilot.org/dev/docs/using-sitl-for-ardupilot-testing.html)
12. [SITL Simulator (Software in the Loop), ArduPilot dev documentation](https://ardupilot.ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html)
13. [Releases, ArduPilot/MAVProxy GitHub](https://github.com/ArduPilot/MAVProxy/releases)
14. [MAVProxy GUI and module development, Google Summer of Code 2019 archive](https://summerofcode.withgoogle.com/archive/2019/projects/5411701640396800)
15. [Multi-Mode MAVLink Test Bench AeroQT, Aerospace Research Communications](https://www.frontierspartnerships.org/journals/aerospace-research-communications/articles/10.3389/arc.2025.14524/full)
16. [Data article describing MAVProxy as a communication proxy, Data in Brief](https://journal.hep.com.cn/dav/EN/PDF/10.70322/dav.2025.10013)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Aerial robots and drones › Autopilots and open-source flight software

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mavproxy

English original: https://www.edgepedia.org/mavproxy
