适用于 Go 编程语言的 Mavlink 库 (2.0 和 1.0)
gomavlib is a library that implements the Mavlink protocol (2.0 and 1.0) in the Go programming language. It can interact with Mavlink-capable devices through a serial port, UDP, TCP or a custom transport, and it can be used to power UGVs, UAVs, ground stations, monitoring systems or routers.
Mavlink is a lightweight and transport-independent protocol that is mostly used to communicate with unmanned ground vehicles (UGV) and unmanned aerial vehicles (UAV, drones, quadcopters, multirotors). It is supported by the most popular open-source flight controllers (Ardupilot and PX4).
This library powers the mavp2p router.
Features:
dialects/.Install Go ≥ 1.26.
Create an empty folder, open a terminal in it and initialize the Go modules system:
go mod init mainDownload one of the example files and place it in the folder.
Compile and run:
go run name-of-the-go-file.goClick to open the API Documentation
Standard dialects are provided in the pkg/dialects/ folder, but it's also possible to use custom dialects, that can be converted into Go files by running:
go install github.com/bluenviron/gomavlib/v4/cmd/dialect-import@latest
dialect-import my_dialect.xml| name | area |
|---|---|
| main website | protocol |
| packet format | protocol |
| common dialect | dialects |
| Golang project layout | project layout |
Related projects
Other Go libraries
Other non-Go libraries
暂无开放 Issues,或尚未同步最近议题。