forked from Archive/PX4-Autopilot
vscode initial configuration (#10911)
This commit is contained in:
parent
3a036021ba
commit
a5fa3eda30
|
@ -52,8 +52,6 @@ GTAGS
|
|||
.idea
|
||||
cmake-build-*/
|
||||
|
||||
.vscode
|
||||
|
||||
posix-configs/SITL/init/test/*_generated
|
||||
|
||||
/airframes.md
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
{
|
||||
"name": "arm-none-eabi-gcc",
|
||||
"toolchainFile": "cmake/toolchains/Toolchain-arm-none-eabi.cmake"
|
||||
},
|
||||
{
|
||||
"name": "native",
|
||||
"toolchainFile": "cmake/toolchains/Toolchain-native.cmake"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,33 @@
|
|||
CONFIG:
|
||||
default: posix_sitl_default
|
||||
choices:
|
||||
posix_sitl_default:
|
||||
short: sitl
|
||||
buildType: RelWithDebInfo
|
||||
settings:
|
||||
CONFIG: posix_sitl_default
|
||||
nuttx_px4fmu-v2_default:
|
||||
short: px4fmu-v2
|
||||
buildType: MinRelSize
|
||||
settings:
|
||||
CONFIG: nuttx_px4fmu-v2_default
|
||||
nuttx_px4fmu-v3_default:
|
||||
short: px4fmu-v3
|
||||
buildType: MinRelSize
|
||||
settings:
|
||||
CONFIG: nuttx_px4fmu-v3_default
|
||||
nuttx_px4fmu-v4_default:
|
||||
short: px4fmu-v4
|
||||
buildType: MinRelSize
|
||||
settings:
|
||||
CONFIG: nuttx_px4fmu-v4_default
|
||||
nuttx_px4fmu-v4pro_default:
|
||||
short: px4fmu-v4pro
|
||||
buildType: MinRelSize
|
||||
settings:
|
||||
CONFIG: nuttx_px4fmu-v4pro_default
|
||||
nuttx_px4fmu-v5_default:
|
||||
short: px4fmu-v5
|
||||
buildType: MinRelSize
|
||||
settings:
|
||||
CONFIG: nuttx_px4fmu-v5_default
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"ms-vscode.cpptools",
|
||||
"github.vscode-pull-request-github",
|
||||
"chiehyu.vscode-astyle",
|
||||
"marus25.cortex-debug",
|
||||
"vector-of-bool.cmake-tools"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "(lldb) Launch",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${command:cmake.launchTargetPath}",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"environment": [],
|
||||
"externalConsole": true,
|
||||
"MIMode": "lldb",
|
||||
},
|
||||
{
|
||||
"name": "(gdb) Launch",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
// Resolved by CMake Tools:
|
||||
"program": "${command:cmake.launchTargetPath}",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"externalConsole": true,
|
||||
"MIMode": "gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"cwd": "${workspaceRoot}",
|
||||
"executable": "${command:cmake.launchTargetPath}",
|
||||
"name": "Debug Microcontroller",
|
||||
"request": "launch",
|
||||
"type": "cortex-debug",
|
||||
"servertype": "jlink"
|
||||
},
|
||||
]
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"editor.insertSpaces": false,
|
||||
"editor.wordWrapColumn": 120,
|
||||
"astyle.astylerc": "${workspaceFolder}/Tools/astyle/astylerc",
|
||||
"C_Cpp.default.cppStandard": "c++11",
|
||||
"C_Cpp.default.cStandard": "c99",
|
||||
"cmake.buildDirectory": "${workspaceRoot}/build/${variant:CONFIG}",
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "jmavsim",
|
||||
"type": "shell",
|
||||
"command": "make posix_sitl_default jmavsim",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue