mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 00:43:34 +08:00
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:
@@ -34,3 +34,4 @@
|
|||||||
px4_add_library(launchdetection
|
px4_add_library(launchdetection
|
||||||
LaunchDetector.cpp
|
LaunchDetector.cpp
|
||||||
)
|
)
|
||||||
|
set_property(GLOBAL APPEND PROPERTY PX4_MODULE_CONFIG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/launchdetection_params.yaml)
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user