https://github.com/px4/px4-gpsdrivers
Platform independent GPS drivers
https://github.com/px4/px4-gpsdrivers
Last synced: about 1 year ago
JSON representation
Platform independent GPS drivers
- Host: GitHub
- URL: https://github.com/px4/px4-gpsdrivers
- Owner: PX4
- License: bsd-3-clause
- Created: 2016-04-19T08:59:54.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T08:35:38.000Z (about 1 year ago)
- Last Synced: 2025-04-12T04:47:59.425Z (about 1 year ago)
- Language: C++
- Size: 436 KB
- Stars: 96
- Watchers: 45
- Forks: 201
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# GPS Drivers
## Overview
This repository contains user-space gps drivers, used as a submodule in
[PX4-Autopilot](https://github.com/PX4/PX4-Autopilot) and
[QGroundControl](https://github.com/mavlink/qgroundcontrol).
All platform-specific stuff is done via a callback function and a
`definitions.h` header file.
In order for the project to build, `definitions.h` must include definitions for `sensor_gnss_relative_s`, `sensor_gps_s` and `satellite_info_s`.
For example, check the implementation in [PX4 Autopilot](https://github.com/PX4/PX4-Autopilot/blob/master/src/drivers/gps/definitions.h) or [QGroundControl](https://github.com/mavlink/qgroundcontrol/blob/master/src/GPS/definitions.h).
## Parser tests
To test parsers, build and run the cmake project:
```
cmake -Bbuild -H.
cmake --build build && build/gps-parser-test
```