refactor(sensors/vehicle_acceleration): 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 c09976f99b
commit ac0fddd920
2 changed files with 17 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ px4_add_library(vehicle_acceleration
VehicleAcceleration.cpp
VehicleAcceleration.hpp
)
set_property(GLOBAL APPEND PROPERTY PX4_MODULE_CONFIG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/imu_accel_parameters.yaml)
target_compile_options(vehicle_acceleration PRIVATE ${MAX_CUSTOM_OPT_LEVEL})

View File

@@ -0,0 +1,16 @@
module_name: vehicle_acceleration
parameters:
- group: Sensors
definitions:
IMU_ACCEL_CUTOFF:
description:
short: Low pass filter cutoff frequency for accel
long: |-
The cutoff frequency for the 2nd order butterworth filter on the primary accelerometer.
This only affects the signal sent to the controllers, not the estimators. 0 disables the filter.
type: float
default: 30.0
min: 0
max: 1000
unit: Hz
reboot_required: true