mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Changes to add px4fmu-v2_lpe config.
This commit is contained in:
committed by
Lorenz Meier
parent
338804606a
commit
434dddedea
@@ -1014,16 +1014,20 @@ endfunction()
|
||||
function(px4_generate_parameters_xml)
|
||||
px4_parse_function_args(
|
||||
NAME px4_generate_parameters_xml
|
||||
ONE_VALUE OUT BOARD SCOPE
|
||||
ONE_VALUE OUT BOARD SCOPE OVERRIDES
|
||||
REQUIRED OUT BOARD
|
||||
ARGN ${ARGN})
|
||||
set(path ${PX4_SOURCE_DIR}/src)
|
||||
file(GLOB_RECURSE param_src_files
|
||||
${PX4_SOURCE_DIR}/src/*params.c
|
||||
)
|
||||
if (NOT OVERRIDES)
|
||||
set(OVERRIDES "{}")
|
||||
endif()
|
||||
add_custom_command(OUTPUT ${OUT}
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_process_params.py
|
||||
-s ${path} --board CONFIG_ARCH_${BOARD} --xml --inject-xml --scope ${SCOPE}
|
||||
--overrides ${OVERRIDES}
|
||||
DEPENDS ${param_src_files} ${PX4_SOURCE_DIR}/Tools/px_process_params.py
|
||||
${PX4_SOURCE_DIR}/Tools/px_generate_params.py
|
||||
)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
include(configs/nuttx_px4fmu-v2_default)
|
||||
|
||||
set(PARAM_DEFAULT_OVERRIDES "{\\\"SYS_MC_EST_GROUP\\\": 1}")
|
||||
|
||||
list(REMOVE_ITEM config_module_list
|
||||
modules/ekf2
|
||||
)
|
||||
|
||||
list(APPEND config_module_list
|
||||
modules/attitude_estimator_q
|
||||
modules/local_position_estimator
|
||||
)
|
||||
Reference in New Issue
Block a user