mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
a095040aea
commit
32766cc355
@ -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
|
||||
|
||||
36
src/modules/sensors/vehicle_imu/imu_parameters.yaml
Normal file
36
src/modules/sensors/vehicle_imu/imu_parameters.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user