refactor(sensors/vehicle_air_data): convert params.c to module.yaml

Convert parameter definition(s) from legacy C format to YAML
module configuration.
This commit is contained in:
Jacob Dahl
2026-03-17 21:55:35 -08:00
committed by Jacob Dahl
parent ac0fddd920
commit 1ec0ca26a0
2 changed files with 31 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ px4_add_library(vehicle_air_data
VehicleAirData.cpp
VehicleAirData.hpp
)
set_property(GLOBAL APPEND PROPERTY PX4_MODULE_CONFIG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/params.yaml)
target_link_libraries(vehicle_air_data
PRIVATE
data_validator

View File

@@ -0,0 +1,30 @@
module_name: vehicle_air_data
parameters:
- group: Sensors
definitions:
SENS_BARO_QNH:
description:
short: QNH for barometer
type: float
default: 1013.25
min: 500
max: 1500
unit: hPa
SENS_BARO_RATE:
description:
short: Baro max rate
long: |-
Barometric air data maximum publication rate. This is an upper bound,
actual barometric data rate is still dependent on the sensor.
type: float
default: 20.0
min: 1
max: 200
unit: Hz
SENS_BAR_AUTOCAL:
description:
short: Barometer auto calibration
long: Automatically calibrate barometer based on the GNSS height
category: System
type: boolean
default: 1