From df34662110d5e5902d8e536acaaa09e520a0d7ff Mon Sep 17 00:00:00 2001 From: Jacob Dahl <37091262+dakejahl@users.noreply.github.com> Date: Wed, 30 Sep 2026 09:45:21 -0800 Subject: [PATCH] docs(msg): keep implementation details out of the GNSS message comments (#28932) Message comments describe the message and its fields. These named parameters, a threshold and the logic of the code that fills or reads them, which goes stale when that code changes. Assisted-by: Claude:claude-fable-5-1 --- msg/FailsafeFlags.msg | 2 +- msg/PpsCapture.msg | 2 +- msg/RtcmData.msg | 3 +-- msg/SensorGnssSpectrum.msg | 3 +-- msg/VehicleGnssHeading.msg | 6 +++--- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/msg/FailsafeFlags.msg b/msg/FailsafeFlags.msg index e687ad74113..f6b991c5cd3 100644 --- a/msg/FailsafeFlags.msg +++ b/msg/FailsafeFlags.msg @@ -62,4 +62,4 @@ bool navigator_failure # Navigator failed to execute a mode bool parachute_unhealthy # Parachute system missing or unhealthy bool traffic_avoidance_unhealthy # Traffic avoidance (ADS-B/FLARM) system missing or unhealthy bool remote_id_unhealthy # Remote ID (Open Drone ID) system missing or unhealthy -bool gnss_lost # Active GNSS count dropped below SYS_HAS_NUM_GNSS, or two receivers report inconsistent positions +bool gnss_lost # Fewer GNSS receivers are healthy than required, or two receivers report inconsistent positions diff --git a/msg/PpsCapture.msg b/msg/PpsCapture.msg index c6fa2cb9792..262d44476fb 100644 --- a/msg/PpsCapture.msg +++ b/msg/PpsCapture.msg @@ -1,3 +1,3 @@ uint64 timestamp # time since system start (microseconds) at PPS capture event uint64 rtc_timestamp # Corrected GPS UTC timestamp at PPS capture event -uint8 pps_rate_exceeded_counter # Increments when PPS dt < 50ms +uint8 pps_rate_exceeded_counter # Count of PPS pulses that arrived too soon after the previous one diff --git a/msg/RtcmData.msg b/msg/RtcmData.msg index b28fe2d76f7..09728a720fc 100644 --- a/msg/RtcmData.msg +++ b/msg/RtcmData.msg @@ -4,8 +4,7 @@ # # rtcm_corrections - external fixed-base corrections fed into the vehicle (MAVLink # GPS_RTCM_DATA, UAVCAN RTCMStream, GPS drivers in dump mode). Multiple -# sources are allowed, one uORB instance each; consumers select an instance -# via their stale-link logic. +# sources are allowed, one uORB instance each; consumers select one instance. # # rtcm_moving_baseline - moving-base GPS output (RTCM 4072 or equivalent) intended for a rover. # Single publisher per vehicle (on-board moving base, or a CANnode diff --git a/msg/SensorGnssSpectrum.msg b/msg/SensorGnssSpectrum.msg index 95a96442ed6..e73be6e6050 100644 --- a/msg/SensorGnssSpectrum.msg +++ b/msg/SensorGnssSpectrum.msg @@ -1,7 +1,6 @@ # GNSS spectrum analysis # -# Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN -# message (enabled via the GPS_UBX_SPECTRUM parameter). +# Reports a basic RF spectrum analysis for a GNSS receiver, decoded from the u-blox UBX-MON-SPAN message. # Published by the `gps` driver (UBX protocol only), once per RF block, via the block-specific topics below. # The center frequency of bin i is: f(i) = center_frequency + spectrum_span * (i - 127) / 256 diff --git a/msg/VehicleGnssHeading.msg b/msg/VehicleGnssHeading.msg index 50592600533..6b622f65e12 100644 --- a/msg/VehicleGnssHeading.msg +++ b/msg/VehicleGnssHeading.msg @@ -1,6 +1,6 @@ -# GNSS heading from a dual-antenna or moving-baseline receiver, published by the sensors module from sensor_gnss_relative. -# Only headings whose reported baseline matches the configured SENS_GNSSn_HDG baseline are published. Consumed by EKF2 -# independently from position/velocity. +# GNSS heading from a dual-antenna or moving-baseline receiver +# +# Published by the sensors module from sensor_gnss_relative. Consumed by EKF2 independently from position and velocity. uint64 timestamp # time since system start (microseconds) uint64 timestamp_sample # time since system start (microseconds) - actual measurement time