mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
vscode initial configuration (#10911)
This commit is contained in:
@@ -52,8 +52,6 @@ GTAGS
|
|||||||
.idea
|
.idea
|
||||||
cmake-build-*/
|
cmake-build-*/
|
||||||
|
|
||||||
.vscode
|
|
||||||
|
|
||||||
posix-configs/SITL/init/test/*_generated
|
posix-configs/SITL/init/test/*_generated
|
||||||
|
|
||||||
/airframes.md
|
/airframes.md
|
||||||
|
|||||||
Vendored
+10
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
Vendored
+33
@@ -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
|
||||||
Vendored
+11
@@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+44
@@ -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"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+8
@@ -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}",
|
||||||
|
}
|
||||||
Vendored
+16
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user