Browse Source
* working debugging (one click build and debug) * SITL jmavsim * SITL gazebo * jlink px4_fmu-v{2-5} * improved syntax highlighting * GNU linker files * ROS message files msg/*.msg * jinja2 template files * fixed intellisense supportsbg
27 changed files with 367 additions and 120 deletions
@ -0,0 +1,26 @@ |
|||||||
|
{ |
||||||
|
"configurations": [ |
||||||
|
{ |
||||||
|
"name": "Linux", |
||||||
|
"intelliSenseMode": "gcc-x64", |
||||||
|
"includePath": [ |
||||||
|
"${workspaceFolder}/**" |
||||||
|
], |
||||||
|
"defines": [], |
||||||
|
"browse": { |
||||||
|
"path": [ |
||||||
|
"${workspaceFolder}/src/", |
||||||
|
"${workspaceFolder}/src/lib/", |
||||||
|
"${workspaceFolder}/src/lib/matrix", |
||||||
|
"${workspaceFolder}/src/platforms", |
||||||
|
"${workspaceFolder}/platforms/", |
||||||
|
"." |
||||||
|
], |
||||||
|
"limitSymbolsToIncludedHeaders": true |
||||||
|
}, |
||||||
|
"compileCommands": "${workspaceFolder}/.vscode/compile_commands.json", |
||||||
|
"configurationProvider": "vector-of-bool.cmake-tools" |
||||||
|
} |
||||||
|
], |
||||||
|
"version": 4 |
||||||
|
} |
@ -1,6 +0,0 @@ |
|||||||
[ |
|
||||||
{ |
|
||||||
"name": "PX4 default", |
|
||||||
"preferredGenerator": "Ninja" |
|
||||||
} |
|
||||||
] |
|
@ -1,115 +1,194 @@ |
|||||||
{ |
{ |
||||||
"version": "0.2.0", |
"version": "0.2.0", |
||||||
"configurations": [ |
"configurations": [ |
||||||
{ |
{ |
||||||
"name": "(gdb) Launch (shell)", |
"name": "SITL shell", |
||||||
"type": "cppdbg", |
"type": "cppdbg", |
||||||
"request": "launch", |
"request": "launch", |
||||||
"program": "${command:cmake.launchTargetPath}", |
"program": "${command:cmake.launchTargetPath}", |
||||||
"args": [ |
"args": [ |
||||||
"${workspaceFolder}/ROMFS/px4fmu_common", |
"${workspaceFolder}/ROMFS/px4fmu_common", |
||||||
"-s", "etc/init.d-posix/rcS", |
"-s", |
||||||
"-t", "${workspaceFolder}/test_data" |
"etc/init.d-posix/rcS", |
||||||
], |
"-t", |
||||||
"stopAtEntry": false, |
"${workspaceFolder}/test_data" |
||||||
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
], |
||||||
"environment": [{"name": "PX4_SIM_MODEL", "value": "shell"}], |
"stopAtEntry": false, |
||||||
"externalConsole": false, |
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
||||||
|
"environment": [ |
||||||
|
{ |
||||||
|
"name": "PX4_SIM_MODEL", |
||||||
|
"value": "shell" |
||||||
|
} |
||||||
|
], |
||||||
|
"externalConsole": false, |
||||||
|
"linux": { |
||||||
"MIMode": "gdb", |
"MIMode": "gdb", |
||||||
"setupCommands": [ |
"setupCommands": [ |
||||||
{ |
{ |
||||||
"description": "Enable pretty-printing for gdb", |
"description": "Enable pretty-printing for gdb", |
||||||
"text": "-enable-pretty-printing", |
"text": "-enable-pretty-printing", |
||||||
|
"ignoreFailures": true |
||||||
"ignoreFailures": true, |
}, |
||||||
|
{ |
||||||
|
"description": "PX4 ignore wq signals", |
||||||
"text": "handle SIGCONT nostop noprint nopass", |
"text": "handle SIGCONT nostop noprint nopass", |
||||||
|
"ignoreFailures": true |
||||||
} |
} |
||||||
] |
] |
||||||
}, |
}, |
||||||
{ |
"osx": { |
||||||
"name": "(lldb) Launch (shell)", |
|
||||||
"type": "cppdbg", |
|
||||||
"request": "launch", |
|
||||||
"program": "${command:cmake.launchTargetPath}", |
|
||||||
"args": [ |
|
||||||
"${workspaceFolder}/ROMFS/px4fmu_common", |
|
||||||
"-s", "etc/init.d-posix/rcS", |
|
||||||
"-t", "${workspaceFolder}/test_data" |
|
||||||
], |
|
||||||
"stopAtEntry": false, |
|
||||||
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
|
||||||
"environment": [{"name": "PX4_SIM_MODEL", "value": "shell"}], |
|
||||||
"externalConsole": true, |
|
||||||
"MIMode": "lldb", |
"MIMode": "lldb", |
||||||
"setupCommands": [ |
"setupCommands": [ |
||||||
{ |
{ |
||||||
"text": "pro hand -p true -s false -n false SIGCONT", |
"text": "pro hand -p true -s false -n false SIGCONT", |
||||||
} |
} |
||||||
] |
] |
||||||
}, |
} |
||||||
{ |
}, |
||||||
"name": "(gdb) Launch (jmavsim iris)", |
{ |
||||||
"type": "cppdbg", |
"name": "SITL jmavsim iris", |
||||||
"request": "launch", |
"type": "cppdbg", |
||||||
"program": "${command:cmake.launchTargetPath}", |
"request": "launch", |
||||||
"args": [ |
"program": "${command:cmake.launchTargetPath}", |
||||||
"${workspaceFolder}/ROMFS/px4fmu_common", |
"args": [ |
||||||
"-s", "etc/init.d-posix/rcS", |
"${workspaceFolder}/ROMFS/px4fmu_common", |
||||||
"-t", "${workspaceFolder}/test_data" |
"-s", |
||||||
], |
"etc/init.d-posix/rcS", |
||||||
"stopAtEntry": false, |
"-t", |
||||||
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
"${workspaceFolder}/test_data" |
||||||
"environment": [{"name": "PX4_SIM_MODEL", "value": "iris"}], |
], |
||||||
"externalConsole": false, |
"stopAtEntry": false, |
||||||
|
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
||||||
|
"environment": [ |
||||||
|
{ |
||||||
|
"name": "PX4_SIM_MODEL", |
||||||
|
"value": "iris" |
||||||
|
} |
||||||
|
], |
||||||
|
"externalConsole": false, |
||||||
|
"preLaunchTask": "jmavsim", |
||||||
|
"postDebugTask": "jmavsim kill", |
||||||
|
"linux": { |
||||||
"MIMode": "gdb", |
"MIMode": "gdb", |
||||||
"setupCommands": [ |
"setupCommands": [ |
||||||
{ |
{ |
||||||
"description": "Enable pretty-printing for gdb", |
"description": "Enable pretty-printing for gdb", |
||||||
"text": "-enable-pretty-printing", |
"text": "-enable-pretty-printing", |
||||||
|
"ignoreFailures": true |
||||||
"ignoreFailures": true, |
}, |
||||||
|
{ |
||||||
|
"description": "PX4 ignore wq signals", |
||||||
"text": "handle SIGCONT nostop noprint nopass", |
"text": "handle SIGCONT nostop noprint nopass", |
||||||
|
"ignoreFailures": true |
||||||
} |
} |
||||||
], |
] |
||||||
"preLaunchTask": "jmavsim" |
|
||||||
}, |
}, |
||||||
{ |
"osx": { |
||||||
"name": "(lldb) Launch (jmavsim iris)", |
|
||||||
"type": "cppdbg", |
|
||||||
"request": "launch", |
|
||||||
"program": "${command:cmake.launchTargetPath}", |
|
||||||
"args": [ |
|
||||||
"${workspaceFolder}/ROMFS/px4fmu_common", |
|
||||||
"-s", "etc/init.d-posix/rcS", |
|
||||||
"-t", "${workspaceFolder}/test_data" |
|
||||||
], |
|
||||||
"stopAtEntry": false, |
|
||||||
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
|
||||||
"environment": [{"name": "PX4_SIM_MODEL", "value": "iris"}], |
|
||||||
"externalConsole": true, |
|
||||||
"MIMode": "lldb", |
"MIMode": "lldb", |
||||||
"preLaunchTask": "jmavsim", |
|
||||||
"setupCommands": [ |
"setupCommands": [ |
||||||
{ |
{ |
||||||
"text": "pro hand -p true -s false -n false SIGCONT", |
"text": "pro hand -p true -s false -n false SIGCONT", |
||||||
} |
} |
||||||
] |
] |
||||||
|
} |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "SITL gazebo iris", |
||||||
|
"type": "cppdbg", |
||||||
|
"request": "launch", |
||||||
|
"program": "${command:cmake.launchTargetPath}", |
||||||
|
"args": [ |
||||||
|
"${workspaceFolder}/ROMFS/px4fmu_common", |
||||||
|
"-s", |
||||||
|
"etc/init.d-posix/rcS", |
||||||
|
"-t", |
||||||
|
"${workspaceFolder}/test_data" |
||||||
|
], |
||||||
|
"stopAtEntry": false, |
||||||
|
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
||||||
|
"environment": [ |
||||||
|
{ |
||||||
|
"name": "PX4_SIM_MODEL", |
||||||
|
"value": "iris" |
||||||
|
} |
||||||
|
], |
||||||
|
"externalConsole": false, |
||||||
|
"preLaunchTask": "gazebo iris", |
||||||
|
"postDebugTask": "gazebo kill", |
||||||
|
"linux": { |
||||||
|
"MIMode": "gdb", |
||||||
|
"setupCommands": [ |
||||||
|
{ |
||||||
|
"description": "Enable pretty-printing for gdb", |
||||||
|
"text": "-enable-pretty-printing", |
||||||
|
"ignoreFailures": true |
||||||
|
}, |
||||||
|
{ |
||||||
|
"description": "PX4 ignore wq signals", |
||||||
|
"text": "handle SIGCONT nostop noprint nopass", |
||||||
|
"ignoreFailures": true |
||||||
|
} |
||||||
|
] |
||||||
}, |
}, |
||||||
{ |
"osx": { |
||||||
"name": "(jlink) px4_fmu-v2", |
"MIMode": "lldb", |
||||||
"cwd": "${workspaceRoot}", |
"setupCommands": [ |
||||||
"executable": "${workspaceRoot}/build/px4_fmu-v2_default/px4_fmu-v2_default.elf", |
{ |
||||||
"request": "launch", |
"text": "pro hand -p true -s false -n false SIGCONT", |
||||||
"type": "cortex-debug", |
} |
||||||
"servertype": "jlink", |
] |
||||||
"device": "STM32F427VI", |
} |
||||||
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F427.svd", |
}, |
||||||
"interface": "swd", |
{ |
||||||
"ipAddress": null, |
"name": "px4_fmu-v2 (jlink) ", |
||||||
"serialNumber": null |
"executable": "${command:cmake.launchTargetPath}", |
||||||
}, |
"request": "launch", |
||||||
] |
"type": "cortex-debug", |
||||||
} |
"servertype": "jlink", |
||||||
|
"device": "STM32F427VI", |
||||||
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F427.svd", |
||||||
|
"interface": "swd" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "px4_fmu-v3 (jlink)", |
||||||
|
"executable": "${command:cmake.launchTargetPath}", |
||||||
|
"request": "launch", |
||||||
|
"type": "cortex-debug", |
||||||
|
"servertype": "jlink", |
||||||
|
"device": "STM32F427VI", |
||||||
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F427.svd", |
||||||
|
"interface": "swd" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "px4_fmu-v4 (jlink)", |
||||||
|
"executable": "${command:cmake.launchTargetPath}", |
||||||
|
"request": "launch", |
||||||
|
"type": "cortex-debug", |
||||||
|
"servertype": "jlink", |
||||||
|
"device": "STM32F427VI", |
||||||
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F427.svd", |
||||||
|
"interface": "swd" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "px4_fmu-v4pro (jlink)", |
||||||
|
"executable": "${command:cmake.launchTargetPath}", |
||||||
|
"request": "launch", |
||||||
|
"type": "cortex-debug", |
||||||
|
"servertype": "jlink", |
||||||
|
"device": "STM32F469VI", |
||||||
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F469.svd", |
||||||
|
"interface": "swd" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"name": "px4_fmu-v5 (jlink)", |
||||||
|
"executable": "${command:cmake.launchTargetPath}", |
||||||
|
"request": "launch", |
||||||
|
"type": "cortex-debug", |
||||||
|
"servertype": "jlink", |
||||||
|
"device": "STM32F765VI", |
||||||
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F7x5.svd", |
||||||
|
"interface": "swd" |
||||||
|
}, |
||||||
|
] |
||||||
|
} |
@ -1,10 +1,82 @@ |
|||||||
{ |
{ |
||||||
"editor.insertSpaces": false, |
"editor.insertSpaces": false, |
||||||
|
"editor.tabSize": 8, |
||||||
"editor.wordWrapColumn": 120, |
"editor.wordWrapColumn": 120, |
||||||
|
"editor.suggest.localityBonus": true, |
||||||
"astyle.astylerc": "${workspaceFolder}/Tools/astyle/astylerc", |
"astyle.astylerc": "${workspaceFolder}/Tools/astyle/astylerc", |
||||||
"C_Cpp.default.cppStandard": "c++11", |
"astyle.c.enable": true, |
||||||
"C_Cpp.default.cStandard": "c99", |
"astyle.cpp.enable": true, |
||||||
"cmake.buildDirectory": "${workspaceRoot}/build/${variant:CONFIG}", |
"breadcrumbs.enabled": true, |
||||||
"cmake.autoRestartBuild": true, |
"cmake.autoRestartBuild": true, |
||||||
|
"cmake.buildDirectory": "${workspaceFolder}/build/${variant:CONFIG}", |
||||||
|
"cmake.buildBeforeRun": true, |
||||||
"cmake.configureOnOpen": true, |
"cmake.configureOnOpen": true, |
||||||
|
"cmake.copyCompileCommands": "${workspaceFolder}/.vscode/compile_commands.json", |
||||||
|
"cmake.debugConfig": { |
||||||
|
"name": "SITL shell (gdb)", |
||||||
|
"type": "cppdbg", |
||||||
|
"request": "launch", |
||||||
|
"program": "${command:cmake.launchTargetPath}", |
||||||
|
"args": [ |
||||||
|
"${workspaceFolder}/ROMFS/px4fmu_common", |
||||||
|
"-s", |
||||||
|
"etc/init.d-posix/rcS", |
||||||
|
"-t", |
||||||
|
"${workspaceFolder}/test_data" |
||||||
|
], |
||||||
|
"stopAtEntry": false, |
||||||
|
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp", |
||||||
|
"environment": [ |
||||||
|
{ |
||||||
|
"name": "PX4_SIM_MODEL", |
||||||
|
"value": "shell" |
||||||
|
} |
||||||
|
], |
||||||
|
"externalConsole": false, |
||||||
|
"linux": { |
||||||
|
"MIMode": "gdb", |
||||||
|
"setupCommands": [ |
||||||
|
{ |
||||||
|
"description": "Enable pretty-printing for gdb", |
||||||
|
"text": "-enable-pretty-printing", |
||||||
|
"ignoreFailures": true |
||||||
|
}, |
||||||
|
{ |
||||||
|
"description": "PX4 ignore wq signals", |
||||||
|
"text": "handle SIGCONT nostop noprint nopass", |
||||||
|
"ignoreFailures": true |
||||||
|
} |
||||||
|
] |
||||||
|
}, |
||||||
|
"osx": { |
||||||
|
"MIMode": "lldb", |
||||||
|
"setupCommands": [ |
||||||
|
{ |
||||||
|
"text": "pro hand -p true -s false -n false SIGCONT", |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"C_Cpp.clang_format_fallbackStyle": "none", |
||||||
|
"C_Cpp.configurationWarnings": "Disabled", |
||||||
|
"C_Cpp.default.cppStandard": "c++11", |
||||||
|
"C_Cpp.default.cStandard": "c99", |
||||||
|
"C_Cpp.default.intelliSenseMode": "gcc-x64", |
||||||
|
"C_Cpp.errorSquiggles": "Disabled", |
||||||
|
"C_Cpp.formatting": "Disabled", |
||||||
|
"C_Cpp.intelliSenseEngine": "Default", |
||||||
|
"C_Cpp.intelliSenseEngineFallback": "Disabled", |
||||||
|
"debug.toolBarLocation": "docked", |
||||||
|
"git.detectSubmodulesLimit": 20, |
||||||
|
"files.associations": { |
||||||
|
"*.jinja": "jinja" |
||||||
|
}, |
||||||
|
"search.exclude": { |
||||||
|
"build/**": true |
||||||
|
}, |
||||||
|
"search.showLineNumbers": true, |
||||||
|
"workbench.statusBar.feedback.visible": false, |
||||||
|
"workbench.editor.enablePreview": false, |
||||||
|
"workbench.editor.enablePreviewFromQuickOpen": false, |
||||||
|
"workbench.editor.highlightModifiedTabs": true |
||||||
} |
} |
Loading…
Reference in new issue