SelfSync

Magnetometer data message

Magnetometer data messages store the raw and calibrated samples of the compass of the device, several per second.

FIT name
magnetometer_data
Global message number
208
JavaScript SDK key
magnetometerDataMesgs
Fields
10

Fields

  • timestampDateTimes

    Moment the message refers to, in UTC. FIT stores it as seconds since the FIT epoch (December 31, 1989, 00:00:00 UTC); decoders usually expose it as a regular date.

  • timestampMsUint16ms

    Millisecond part of the timestamp, for sub-second precision.

  • For each sample of the message, offset in milliseconds from the message timestamp at which it was taken.

  • magXUint16[]counts

    Magnetometer samples on the X axis. Raw ADC readings, up to 30 per message, to convert using the matching sensor calibration message.

  • magYUint16[]counts

    Magnetometer samples on the Y axis. Raw ADC readings, up to 30 per message, to convert using the matching sensor calibration message.

  • magZUint16[]counts

    Magnetometer samples on the Z axis. Raw ADC readings, up to 30 per message, to convert using the matching sensor calibration message.

  • calibratedMagXFloat32[]G

    Calibrated magnetometer samples on the X axis.

  • calibratedMagYFloat32[]G

    Calibrated magnetometer samples on the Y axis.

  • calibratedMagZFloat32[]G

    Calibrated magnetometer samples on the Z axis.

  • mesgNumString

    Global message number identifying the kind of message. Decoders use it to know which profile to apply to the data.

Other sensors and raw data messages

See all the FIT messages