Skip to main content
ados-gnss reads the GNSS receivers attached to a ground station or a visor. It reports fix, position, RTK state and PPS lock for each receiver, runs an RTK base (survey-in or a known position), derives heading from two receivers, and forwards the base’s RTCM3 corrections toward the paired drones. It runs on the ground_station and visor profiles. A drone’s own GNSS belongs to its flight controller.

How the data moves

  1. ados-gnss reads receiver bytes from a serial port, a UDP port, or the sensor hub’s passthrough, and splits them into UBX, NMEA and RTCM3 frames.
  2. It writes the receivers, base and heading state to /run/ados/gnss.json and serves it at GET /api/v1/gnss.
  3. Serial and UDP receiver bytes go on the sensor bus as gnss frames. A base receiver’s RTCM3 output goes on the bus as rtcm frames.
  4. The MAVLink router injects rtcm frames to the flight controllers it reaches as GPS_RTCM_DATA, and a sensor hub forwards them to its own receiver.
  5. PPS pulses are published as sync pairs, which the clock service uses as a time source.

Configure receivers

Receivers are listed under gnss.receivers in /etc/ados/config.yaml:
source takes one of these forms: port names the receiver port the configuration is written to: uart1 (default) or usb. Heading needs two receivers and gnss.heading.enabled: true.

Read the state

The response carries present, receivers, base and heading. When the service is not running or its sidecar is older than 5 seconds, present is false, receivers is empty and base and heading are null. Each receiver: base carries mode, state (off, surveying, fixed or failed), elapsed_s, min_dur_s, the current accuracy_m and target_accuracy_m, the fixed position once known, and rtcm_out (msgs_per_s, bytes_total, and targets, the number of linked peers). heading carries available, deg, accuracy_deg and baseline_m.

Run an RTK base

PUT /api/v1/gnss/base sets the base mode on the receiver at once, and once the service accepts it, saves it as gnss.base in the agent config so the next start applies it again.
The survey runs until both the minimum duration and the target accuracy are met. Leave out min_dur_s or accuracy_m to keep the current values.
A success returns the new base object. Errors use the body {"error", "detail"}:

Inject corrections

POST /api/v1/gnss/rtcm takes raw RTCM3 bytes as the body, from an NTRIP client or any other correction source, and publishes them on the sensor bus. The reply counts the GPS_RTCM_DATA fragments the bytes make.

Configuration reference

Last modified on November 28, 2026