Skip to content

VehicleGnssHeading (UORB message) ​

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.

TOPICS: vehicle_gnss_heading

Fields ​

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64time since system start (microseconds)
timestamp_sampleuint64time since system start (microseconds) - actual measurement time
device_iduint32unique device ID for the sensor that does not change between power cycles
headingfloat32body-frame heading rel to NED from dual antenna array (rad, [-PI, PI])
heading_accuracyfloat321-sigma heading accuracy (rad)
heading_offsetfloat32yaw of the configured antenna baseline in the body frame; heading + heading_offset is the measured baseline heading (rad, [-PI, PI])
baseline_lengthfloat32antenna baseline length reported by the receiver, NaN if it doesn't report one (m)
jamming_stateuint8jamming_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected)
spoofing_stateuint8spoofing_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected)

Source Message ​

Source file (GitHub)

Click here to see original file
c
# 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.

uint64 timestamp              # time since system start (microseconds)
uint64 timestamp_sample       # time since system start (microseconds) - actual measurement time

uint32 device_id              # unique device ID for the sensor that does not change between power cycles

float32 heading               # body-frame heading rel to NED from dual antenna array (rad, [-PI, PI])
float32 heading_accuracy      # 1-sigma heading accuracy (rad)
float32 heading_offset        # yaw of the configured antenna baseline in the body frame; heading + heading_offset is the measured baseline heading (rad, [-PI, PI])
float32 baseline_length       # antenna baseline length reported by the receiver, NaN if it doesn't report one (m)

uint8 jamming_state           # jamming_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected)
uint8 spoofing_state          # spoofing_state of the receiver providing the heading, values as in SensorGnss (0: Unknown, 1: OK, 2: Mitigated, 3: Detected)