diff --git a/src/modules/sensors/vehicle_air_data/CMakeLists.txt b/src/modules/sensors/vehicle_air_data/CMakeLists.txt index 909f249a7c..5981e4a370 100644 --- a/src/modules/sensors/vehicle_air_data/CMakeLists.txt +++ b/src/modules/sensors/vehicle_air_data/CMakeLists.txt @@ -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 diff --git a/src/modules/sensors/vehicle_air_data/params.yaml b/src/modules/sensors/vehicle_air_data/params.yaml new file mode 100644 index 0000000000..bfdf106ada --- /dev/null +++ b/src/modules/sensors/vehicle_air_data/params.yaml @@ -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