refactor(sensors/vehicle_imu): 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 a095040aea
commit 32766cc355
2 changed files with 37 additions and 0 deletions

View File

@ -35,6 +35,7 @@ px4_add_library(vehicle_imu
VehicleIMU.cpp
VehicleIMU.hpp
)
set_property(GLOBAL APPEND PROPERTY PX4_MODULE_CONFIG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/imu_parameters.yaml)
target_compile_options(vehicle_imu
PRIVATE

View File

@ -0,0 +1,36 @@
module_name: vehicle_imu
parameters:
- group: Sensors
definitions:
IMU_INTEG_RATE:
description:
short: IMU integration rate
long: |-
The rate at which raw IMU data is integrated to produce delta angles and delta velocities.
Recommended to set this to a multiple of the estimator update period (currently 10 ms for ekf2).
type: enum
values:
100: 100 Hz
200: 200 Hz
250: 250 Hz
400: 400 Hz
default: 200
min: 100
max: 1000
unit: Hz
reboot_required: true
SENS_IMU_AUTOCAL:
description:
short: IMU auto calibration
long: Automatically initialize IMU (accel/gyro) calibration from bias estimates
if available.
category: System
type: boolean
default: 1
SENS_IMU_CLPNOTI:
description:
short: IMU notify clipping
long: Notify the user if the IMU is clipping
category: System
type: boolean
default: 1