fix(gps): run a moving base and its rover at 5 Hz on every board (#28986)

* fix(gps): run a moving base and its rover at 5 Hz on every board

PX4-GPSDrivers f6f5c2d89a (PX4/PX4-GPSDrivers#244, with the style pass of #245): a moving base and its rover must share one navigation and measurement rate, and u-blox caps a moving base at 5 Hz on the F9P and the X20P. With the board defaults (F9P 5 Hz, X20P 10 Hz) a mixed pair was mismatched and the X20P rover reported no heading for the epochs its base never observed.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>

* docs(gps): moving base and rover share one navigation rate

The driver now holds both to 5 Hz in the moving base modes; the pages say so and tell the reader to leave GPS_UBX_RATE at 0.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>

---------

Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
(cherry picked from commit b12d17f632)

The submodule points at the port of PX4/PX4-GPSDrivers#244 to that repo's release/1.18 branch.
This commit is contained in:
Jacob Dahl authored and Ramon Roche committed 2026-11-16 10:15:19 -08:00
1 parent 2ceaf38c6a
commit 43c3ee2857
3 files changed
+8 -2

No files matched your search

+3 -1
View File
@@ -120,7 +120,9 @@ For more information see [Rover and Fixed Base](../dronecan/index.md#rover-and-f
The simplest way to set up moving baseline and GPS heading with two ARK RTK GPS modules is via CAN, though it can be done via UART to reduce traffic on the CAN bus if desired.
Note that a heading is only output if the Rover is in RTX Fixed mode. It will not output a heading in RTK Float.
Note that a heading is only output if the Rover is in RTK Fixed mode. It will not output a heading in RTK Float.
Both modules run at 5 Hz in the moving base modes, the u-blox maximum for a moving base, because a rover must share its base's navigation rate. The node firmware sets this, so leave [GPS_UBX_RATE](../advanced_config/parameter_reference.md#GPS_UBX_RATE) at `0`.
Setup via CAN:
@@ -31,6 +31,10 @@ Ideally the two antennas should be identical, on the same level/horizontal plane
- The antennas can be positioned as needed, but the [GPS_YAW_OFFSET](../advanced_config/parameter_reference.md#GPS_YAW_OFFSET) must be configured:
[RTK GPS > GPS as Yaw/Heading Source](../gps_compass/rtk_gps.md#configuring-gps-as-yaw-heading-source).
::: info
A moving base and its rover must run at the same navigation rate, and u-blox limits a moving base to 5 Hz. In the moving base modes ([GPS_UBX_MODE](../advanced_config/parameter_reference.md#GPS_UBX_MODE) 1 to 4) the driver sets 5 Hz on both receivers whatever their model, so leave [GPS_UBX_RATE](../advanced_config/parameter_reference.md#GPS_UBX_RATE) at `0`. A rover running faster than its base has no time-matched base observations for the extra epochs and reports no heading for them.
:::
### UART Setup
- The UART2 of the GPS devices need to be connected together (TXD2 of the "Moving Base" to RXD2 of the "Rover")