Files
PX4-Autopilot/docs/uk/msg_docs/SensorMag.md
2026-07-12 15:29:34 +10:00

3.4 KiB

pageClass
pageClass
is-wide-page

SensorMag (повідомлення UORB)

TOPICS: sensor_mag

Fields

Назва Тип Unit [Frame] Range/Enum Опис
timestamp uint64 time since system start (microseconds)
timestamp_sample uint64
device_id uint32 unique device ID for the sensor that does not change between power cycles
x float32 Gauss magnetic field in the FRD board frame X-axis
y float32 Gauss magnetic field in the FRD board frame Y-axis
z float32 Gauss magnetic field in the FRD board frame Z-axis
temperature float32 °C Temperature.
error_count uint32

Constants

Назва Тип Значення Опис
ORB_QUEUE_LENGTH uint8 4

Source Message

Source file (GitHub)

:::details Click here to see original file

uint64 timestamp          # time since system start (microseconds)
uint64 timestamp_sample

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

float32 x                 # [Gauss] magnetic field in the FRD board frame X-axis
float32 y                 # [Gauss] magnetic field in the FRD board frame Y-axis
float32 z                 # [Gauss] magnetic field in the FRD board frame Z-axis

float32 temperature       # [°C] Temperature.

uint32 error_count

uint8 ORB_QUEUE_LENGTH = 4

:::