Skip to content

SensorAccelFifo (UORB message)

TOPICS: sensor_accel_fifo

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
is_externalbooltrue if the sensor is not mounted on the flight controller board itself
dtfloat32delta time between samples (microseconds)
scalefloat32m/s^2 per count
samplesuint8number of valid samples
xint16[32]FRD board frame X-axis raw counts (m/s^2 = x * scale)
yint16[32]FRD board frame Y-axis raw counts (m/s^2 = y * scale)
zint16[32]FRD board frame Z-axis raw counts (m/s^2 = z * scale)

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
bool is_external          # true if the sensor is not mounted on the flight controller board itself

float32 dt                # delta time between samples (microseconds)
float32 scale             # m/s^2 per count

uint8 samples             # number of valid samples

int16[32] x               # FRD board frame X-axis raw counts (m/s^2 = x * scale)
int16[32] y               # FRD board frame Y-axis raw counts (m/s^2 = y * scale)
int16[32] z               # FRD board frame Z-axis raw counts (m/s^2 = z * scale)