component_information: rework to reflect mavlink message changes

This commit is contained in:
Beat Küng
2021-03-30 08:18:49 +02:00
parent 0f29b87101
commit 6a7688cbca
12 changed files with 179 additions and 156 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ add_custom_command(OUTPUT ${generated_serial_params_file}
)
set(parameters_xml ${PX4_BINARY_DIR}/parameters.xml)
set(parameters_json ${PX4_BINARY_DIR}/params.json) # file name needs to be kept short to fit into url (metadata_uri)
set(parameters_json ${PX4_BINARY_DIR}/parameters.json)
file(GLOB_RECURSE param_src_files ${PX4_SOURCE_DIR}/src/*params.c)
add_custom_command(OUTPUT ${parameters_xml} ${parameters_json} ${parameters_json}.xz
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/px_process_params.py
-1
View File
@@ -8,7 +8,6 @@ class JsonOutput():
def __init__(self, groups, board, inject_xml_file_name):
all_json=dict()
all_json['version']=1
all_json['scope']="Firmware"
all_params=[]
all_json['parameters']=all_params