forked from Archive/PX4-Autopilot
[uorb-graph][squash][refactor] Rework of uorb-graph script -- Greatly expands handled test cases
- debug output is now printed & filtered with the python 'logging' standard module - changed 'module whitelist' to 'scope-whitelist' - whitelist may now apply to libraries - libraries are not included by default - may be merged with their depending modules with the `--merge-depends` cli flag - eliminates redundant 'special-case' handling code - greatly expands debugging output - fixes debug output if package dependencies are missing - still crashes on error matches - now warns on ambiguous matches - prints a list of ambiguous source sites (aka warnings) on completion - adds warnings if any of the source paths are invalid - do not emit debug output for modules outside of the module/scope whitelist - Expand script's CLI parameters - added 'none' output options: undocumented debugging option to silence file output while debugging - added the `--merge-depends` cli flag -- merges output of modules & their dependee libraries - Source processing now happens on original source files: - processing to line-by-line - required overhaul of regex match patterns + processing - pros: - enable tracing of ambiguous parsing sites -- reports (module, file, line-number, line-contents) - simplifies code - reduces computational complexity - cons: - certain declarations are harder to parse (multiline arrays) - refactors: - added specific subclasses for each: Publications, Subscriptions, Ambiguities - added a "Scope" class to represent either a module ('ModuleScope') or a library ('LibraryScope')
This commit is contained in:
parent
8c87ef4272
commit
711422d755
1
Makefile
1
Makefile
|
@ -303,7 +303,6 @@ check_%:
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
uorb_graphs:
|
uorb_graphs:
|
||||||
@./Tools/uorb_graph/create_from_startupscript.sh
|
|
||||||
@./Tools/uorb_graph/create.py --src-path src --exclude-path src/examples --file Tools/uorb_graph/graph_full
|
@./Tools/uorb_graph/create.py --src-path src --exclude-path src/examples --file Tools/uorb_graph/graph_full
|
||||||
@$(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
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
*.json
|
*.json
|
||||||
|
|
||||||
|
*.fv
|
||||||
|
*.fv.pdf
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,13 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
# create the graph from a posix (e.g. SITL) startup script
|
|
||||||
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
|
|
||||||
startup_file="$SCRIPT_DIR"/../../posix-configs/SITL/init/ekf2/typhoon_h480
|
|
||||||
[ -n "$1" ] && startup_file=$1
|
|
||||||
# get the modules as comma-separated list
|
|
||||||
modules=$(cat "$startup_file"|cut -f1 -d' '|sort|uniq|tr '\n' ,)
|
|
||||||
|
|
||||||
cd "$SCRIPT_DIR/../.."
|
|
||||||
"$SCRIPT_DIR"/create.py --src-path src -m "$modules" -f "$SCRIPT_DIR/graph_runtime_sitl"
|
|
||||||
|
|
Loading…
Reference in New Issue