Browse Source

uorb graph: some minor fixes, add full graph w/o mavlink

master
Beat Küng 4 years ago
parent
commit
2320477839
  1. 4
      CMakeLists.txt
  2. 4
      Makefile
  3. 4
      Tools/uorb_graph/create.py

4
CMakeLists.txt

@ -443,8 +443,10 @@ endforeach()
add_custom_command(OUTPUT ${uorb_graph_config} add_custom_command(OUTPUT ${uorb_graph_config}
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/uorb_graph/create.py COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/uorb_graph/create.py
${graph_module_list} ${graph_module_list} --src-path src/lib
--merge-depends
--exclude-path src/examples --exclude-path src/examples
--exclude-path src/lib/parameters # FIXME: enable & fix
--file ${PX4_SOURCE_DIR}/Tools/uorb_graph/graph_${uorb_graph_config} --file ${PX4_SOURCE_DIR}/Tools/uorb_graph/graph_${uorb_graph_config}
WORKING_DIRECTORY ${PX4_SOURCE_DIR} WORKING_DIRECTORY ${PX4_SOURCE_DIR}
COMMENT "Generating uORB graph" COMMENT "Generating uORB graph"

4
Makefile

@ -299,9 +299,11 @@ all_variants_%:
$(foreach a,$(filter $(subst all_variants_,,$@)_%, $(ALL_CONFIG_TARGETS)), $(call cmake-build,$(a)$(BUILD_DIR_SUFFIX))) $(foreach a,$(filter $(subst all_variants_,,$@)_%, $(ALL_CONFIG_TARGETS)), $(call cmake-build,$(a)$(BUILD_DIR_SUFFIX)))
uorb_graphs: uorb_graphs:
@./Tools/uorb_graph/create.py --src-path src --exclude-path src/examples --exclude-path src/lib --file Tools/uorb_graph/graph_full @./Tools/uorb_graph/create.py --src-path src --exclude-path src/examples --exclude-path src/lib/parameters --merge-depends --file Tools/uorb_graph/graph_full
@./Tools/uorb_graph/create.py --src-path src --exclude-path src/examples --exclude-path src/lib/parameters --exclude-path src/modules/mavlink --merge-depends --file Tools/uorb_graph/graph_full_no_mavlink
@$(MAKE) --no-print-directory px4_fmu-v2_default uorb_graph @$(MAKE) --no-print-directory px4_fmu-v2_default uorb_graph
@$(MAKE) --no-print-directory px4_fmu-v4_default uorb_graph @$(MAKE) --no-print-directory px4_fmu-v4_default uorb_graph
@$(MAKE) --no-print-directory px4_fmu-v5_default uorb_graph
@$(MAKE) --no-print-directory px4_sitl_default uorb_graph @$(MAKE) --no-print-directory px4_sitl_default uorb_graph

4
Tools/uorb_graph/create.py

@ -23,7 +23,7 @@ parser.add_argument('-e', '--exclude-path', action='append',
help='Excluded path(s), can be specified multiple times', help='Excluded path(s), can be specified multiple times',
default=[]) default=[])
parser.add_argument('--merge-depends', action='store_true', parser.add_argument('--merge-depends', action='store_true',
help='Merge library topics inte the modules that depend on them.') help='Merge library topics in the modules that depend on them.')
parser.add_argument('-v','--verbosity', action='count', parser.add_argument('-v','--verbosity', action='count',
help='increase output verbosity; primarily for debugging; repeat for more detail', help='increase output verbosity; primarily for debugging; repeat for more detail',
default=0) default=0)
@ -673,7 +673,7 @@ class OutputJSON(object):
node['color'] = topic_colors[topic] node['color'] = topic_colors[topic]
# url is opened when double-clicking on the node # url is opened when double-clicking on the node
# TODO: does not work for multi-topics # TODO: does not work for multi-topics
node['url'] = 'https://github.com/PX4/Firmware/blob/master/msg/'+topic+'.msg' node['url'] = 'https://github.com/PX4/PX4-Autopilot/blob/master/msg/'+topic+'.msg'
nodes.append(node) nodes.append(node)
data['nodes'] = nodes data['nodes'] = nodes

Loading…
Cancel
Save