Skip to content

VehicleMagnetometer (UORB message)

TOPICS: vehicle_magnetometer

Fields

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64time since system start (microseconds)
timestamp_sampleuint64the timestamp of the raw data (microseconds)
device_iduint32unique device ID for the selected magnetometer
magnetometer_gafloat32[3]Magnetic field in the FRD body frame XYZ-axis in Gauss
calibration_countuint8Calibration changed counter. Monotonically increases whenever calibration changes.

Source Message

Source file (GitHub)

Click here to see original file
c
uint64 timestamp            # time since system start (microseconds)

uint64 timestamp_sample     # the timestamp of the raw data (microseconds)

uint32 device_id            # unique device ID for the selected magnetometer

float32[3] magnetometer_ga  # Magnetic field in the FRD body frame XYZ-axis in Gauss

uint8 calibration_count     # Calibration changed counter. Monotonically increases whenever calibration changes.