mavlink: implement COMPONENT_INFORMATION

- implement COMP_METADATA_TYPE_VERSION & add component_version.json.gz to
  ROMFS for all targets.
- implement COMP_METADATA_TYPE_PARAMETER (only enabled for SITL currently)
This commit is contained in:
Beat Küng
2021-02-09 09:44:50 +01:00
parent 9f00fd2796
commit 1f8e7de824
10 changed files with 279 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ add_custom_command(OUTPUT ${generated_serial_params_file}
)
set(parameters_xml ${PX4_BINARY_DIR}/parameters.xml)
set(parameters_json ${PX4_BINARY_DIR}/parameters.json)
set(parameters_json ${PX4_BINARY_DIR}/params.json) # file name needs to be kept short to fit into url (metadata_uri)
file(GLOB_RECURSE param_src_files ${PX4_SOURCE_DIR}/src/*params.c)
add_custom_command(OUTPUT ${parameters_xml} ${parameters_json} ${parameters_json}.gz
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/px_process_params.py