refactor(fw_mode_manager/launchdetection): 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:34 -08:00 committed by Jacob Dahl
parent 4009643c4a
commit a8d385d56f
2 changed files with 39 additions and 0 deletions

View File

@ -34,3 +34,4 @@
px4_add_library(launchdetection
LaunchDetector.cpp
)
set_property(GLOBAL APPEND PROPERTY PX4_MODULE_CONFIG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/launchdetection_params.yaml)

View File

@ -0,0 +1,38 @@
module_name: launchdetection
parameters:
- group: FW Auto Takeoff
definitions:
FW_LAUN_AC_THLD:
description:
short: Trigger acceleration threshold
long: Launch is detected when acceleration in body forward direction is above
FW_LAUN_AC_THLD for FW_LAUN_AC_T seconds.
type: float
default: 30.0
unit: m/s^2
min: 0
decimal: 1
increment: 0.5
FW_LAUN_AC_T:
description:
short: Trigger time
long: Launch is detected when acceleration in body forward direction is above
FW_LAUN_AC_THLD for FW_LAUN_AC_T seconds.
type: float
default: 0.05
unit: s
min: 0.0
max: 5.0
decimal: 2
increment: 0.05
FW_LAUN_MOT_DEL:
description:
short: Motor delay
long: Start the motor(s) this amount of seconds after launch is detected.
type: float
default: 0.0
unit: s
min: 0.0
max: 10.0
decimal: 1
increment: 0.5