mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
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:
@@ -35,6 +35,7 @@ px4_add_library(vehicle_acceleration
|
|||||||
VehicleAcceleration.cpp
|
VehicleAcceleration.cpp
|
||||||
VehicleAcceleration.hpp
|
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})
|
target_compile_options(vehicle_acceleration PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user