Thanks to visit codestin.com
Credit goes to docs.px4.io

Skip to content

SensorBaro (UORB message)

Barometer sensor.

This is populated by barometer drivers and used by the EKF2 estimator. The information is published in the SCALED_PRESSURE_n MAVLink messages (along with information from a corresponding DifferentialPressure instance).

TOPICS: sensor_baro

Fields

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64usTime of publication (since system start)
timestamp_sampleuint64usTime of raw data capture
device_iduint32Unique device ID for the sensor that does not change between power cycles
pressurefloat32PaStatic pressure measurement
temperaturefloat32degCTemperature.
error_countuint32Number of errors detected by driver.

Constants

NameTypeValueDescription
ORB_QUEUE_LENGTHuint84

Source Message

Source file (GitHub)

Click here to see original file
c
# Barometer sensor
#
# This is populated by barometer drivers and used by the EKF2 estimator.
# The information is published in the `SCALED_PRESSURE_n` MAVLink messages (along with information from a corresponding `DifferentialPressure` instance).

uint64 timestamp         # [us] Time of publication (since system start)
uint64 timestamp_sample  # [us] Time of raw data capture

uint32 device_id     # [-] Unique device ID for the sensor that does not change between power cycles
float32 pressure     # [Pa] Static pressure measurement
float32 temperature  # [degC] Temperature.
uint32 error_count   # [-] Number of errors detected by driver.

uint8 ORB_QUEUE_LENGTH = 4