mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-03-23 18:13:49 +08:00
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:
@@ -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
|
||||
|
||||
30
src/modules/sensors/vehicle_air_data/params.yaml
Normal file
30
src/modules/sensors/vehicle_air_data/params.yaml
Normal 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
|
||||
Reference in New Issue
Block a user