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
Daniel Agar
6 years ago
committed by
GitHub
27 changed files with 367 additions and 120 deletions
@ -0,0 +1,26 @@
@@ -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 @@
@@ -1,6 +0,0 @@
|
||||
[ |
||||
{ |
||||
"name": "PX4 default", |
||||
"preferredGenerator": "Ninja" |
||||
} |
||||
] |
@ -1,115 +1,194 @@
@@ -1,115 +1,194 @@
|
||||
{ |
||||
"version": "0.2.0", |
||||
"configurations": [ |
||||
{ |
||||
"name": "(gdb) 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": false, |
||||
"version": "0.2.0", |
||||
"configurations": [ |
||||
{ |
||||
"name": "SITL 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": false, |
||||
"linux": { |
||||
"MIMode": "gdb", |
||||
"setupCommands": [ |
||||
{ |
||||
"description": "Enable pretty-printing for gdb", |
||||
"text": "-enable-pretty-printing", |
||||
|
||||
"ignoreFailures": true, |
||||
|
||||
"ignoreFailures": true |
||||
}, |
||||
{ |
||||
"description": "PX4 ignore wq signals", |
||||
"text": "handle SIGCONT nostop noprint nopass", |
||||
"ignoreFailures": true |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"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, |
||||
"osx": { |
||||
"MIMode": "lldb", |
||||
"setupCommands": [ |
||||
{ |
||||
"text": "pro hand -p true -s false -n false SIGCONT", |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "(gdb) 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": false, |
||||
} |
||||
}, |
||||
{ |
||||
"name": "SITL 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": false, |
||||
"preLaunchTask": "jmavsim", |
||||
"postDebugTask": "jmavsim kill", |
||||
"linux": { |
||||
"MIMode": "gdb", |
||||
"setupCommands": [ |
||||
{ |
||||
"description": "Enable pretty-printing for gdb", |
||||
"text": "-enable-pretty-printing", |
||||
|
||||
"ignoreFailures": true, |
||||
|
||||
"ignoreFailures": true |
||||
}, |
||||
{ |
||||
"description": "PX4 ignore wq signals", |
||||
"text": "handle SIGCONT nostop noprint nopass", |
||||
|
||||
"ignoreFailures": true |
||||
} |
||||
], |
||||
"preLaunchTask": "jmavsim" |
||||
] |
||||
}, |
||||
{ |
||||
"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, |
||||
"osx": { |
||||
"MIMode": "lldb", |
||||
"preLaunchTask": "jmavsim", |
||||
"setupCommands": [ |
||||
{ |
||||
"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 |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "(jlink) px4_fmu-v2", |
||||
"cwd": "${workspaceRoot}", |
||||
"executable": "${workspaceRoot}/build/px4_fmu-v2_default/px4_fmu-v2_default.elf", |
||||
"request": "launch", |
||||
"type": "cortex-debug", |
||||
"servertype": "jlink", |
||||
"device": "STM32F427VI", |
||||
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F427.svd", |
||||
"interface": "swd", |
||||
"ipAddress": null, |
||||
"serialNumber": null |
||||
}, |
||||
] |
||||
} |
||||
"osx": { |
||||
"MIMode": "lldb", |
||||
"setupCommands": [ |
||||
{ |
||||
"text": "pro hand -p true -s false -n false SIGCONT", |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
{ |
||||
"name": "px4_fmu-v2 (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-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 @@
@@ -1,10 +1,82 @@
|
||||
{ |
||||
"editor.insertSpaces": false, |
||||
"editor.tabSize": 8, |
||||
"editor.wordWrapColumn": 120, |
||||
"editor.suggest.localityBonus": true, |
||||
"astyle.astylerc": "${workspaceFolder}/Tools/astyle/astylerc", |
||||
"C_Cpp.default.cppStandard": "c++11", |
||||
"C_Cpp.default.cStandard": "c99", |
||||
"cmake.buildDirectory": "${workspaceRoot}/build/${variant:CONFIG}", |
||||
"astyle.c.enable": true, |
||||
"astyle.cpp.enable": true, |
||||
"breadcrumbs.enabled": true, |
||||
"cmake.autoRestartBuild": true, |
||||
"cmake.buildDirectory": "${workspaceFolder}/build/${variant:CONFIG}", |
||||
"cmake.buildBeforeRun": 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