Skip to content

SensorMag (UORB message) ​

TOPICS: sensor_mag

Fields ​

参数名类型Unit [Frame]Range/Enum描述
timestampuint64time since system start (microseconds)
timestamp_sampleuint64
device_iduint32unique device ID for the sensor that does not change between power cycles
xfloat32magnetic field in the FRD board frame X-axis in Gauss
yfloat32magnetic field in the FRD board frame Y-axis in Gauss
zfloat32magnetic field in the FRD board frame Z-axis in Gauss
temperaturefloat32temperature in degrees Celsius
error_countuint32

Constants ​

参数名类型值描述
ORB_QUEUE_LENGTHuint84

Source Message ​

Source file (GitHub)

Details

Click here to see original file

c
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                 # magnetic field in the FRD board frame X-axis in Gauss
float32 y                 # magnetic field in the FRD board frame Y-axis in Gauss
float32 z                 # magnetic field in the FRD board frame Z-axis in Gauss

float32 temperature       # temperature in degrees Celsius

uint32 error_count

uint8 ORB_QUEUE_LENGTH = 4