Files
PX4-Autopilot/msg/SensorsStatusGnss.msg
T
Jacob Dahl 8e67d725de feat(gnss): keep one receiver each on GPS_RAW_INT and GPS2_RAW (#28940)
An operator reads the two messages as two fixed receivers, but SensorGpsSelector resolved SENS_GNSS_PRIME in the MAVLink streams on its own and put instance 0 on GPS_RAW_INT whenever no receiver was named. The sensors module now gives every receiver a fixed position on sensors_status_gnss: 0 for the preferred receiver, otherwise for the first to publish, then in order of first publication. GPS_RAW_INT and GPS2_RAW report positions 0 and 1, and more receivers fit once MAVLink has an instanced GNSS message. MAX_RECEIVERS names the array length, as .msg array sizes can't reference a constant.

Assisted-by: Claude:claude-opus-5-5
2026-09-30 17:26:52 -06:00

21 lines
1.2 KiB
Plaintext

# Per-receiver GNSS health and check diagnostics
#
# Published by the sensors module. Describes the latest sample of each receiver: to gate on a sample, use vehicle_gnss.usable.
uint64 timestamp # [us] Time since system start
uint32 device_id_selected # [-] Receiver that vehicle_gnss carries
uint8 MAX_RECEIVERS = 4 # Length of the per-receiver arrays
uint32[4] device_ids # [-] One entry per receiver, 0 where unused
int8[4] order # [-] Fixed position of the receiver: 0 for the preferred one, otherwise for the first to publish, then in order of first publication. Changes only with the preference, -1 until the receiver publishes
bool[4] healthy # Publishing, and has passed its checks for long enough
uint16[4] failed_checks # [-] Bitmask of the enabled checks that failed, VehicleGnss CHECK_* bits
bool[4] strict # The pre-flight thresholds apply rather than the relaxed in-flight ones
float32[4] drift_rate_horizontal # [m/s] Horizontal position drift rate at rest
float32[4] drift_rate_vertical # [m/s] Vertical position drift rate at rest
float32[4] speed_horizontal_filtered # [m/s] Filtered horizontal speed at rest
# TOPICS sensors_status_gnss