Changes to add px4fmu-v2_lpe config.

This commit is contained in:
James Goppert
2017-01-07 20:07:36 -05:00
committed by Lorenz Meier
parent 338804606a
commit 434dddedea
5 changed files with 36 additions and 3 deletions
+5 -1
View File
@@ -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
)
+12
View File
@@ -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
)