diff --git a/src/modules/fw_mode_manager/launchdetection/CMakeLists.txt b/src/modules/fw_mode_manager/launchdetection/CMakeLists.txt index 1f7d85d290..6b21b43f7a 100644 --- a/src/modules/fw_mode_manager/launchdetection/CMakeLists.txt +++ b/src/modules/fw_mode_manager/launchdetection/CMakeLists.txt @@ -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) diff --git a/src/modules/fw_mode_manager/launchdetection/launchdetection_params.yaml b/src/modules/fw_mode_manager/launchdetection/launchdetection_params.yaml new file mode 100644 index 0000000000..a9573f2202 --- /dev/null +++ b/src/modules/fw_mode_manager/launchdetection/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