mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 01:40:35 +08:00
vscode updates
* 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 support
This commit is contained in:
+2
-1
@@ -67,5 +67,6 @@ posix-configs/SITL/init/test/*_generated
|
|||||||
|
|
||||||
.vscode/.cortex-debug.peripherals.state.json
|
.vscode/.cortex-debug.peripherals.state.json
|
||||||
.vscode/.cortex-debug.registers.state.json
|
.vscode/.cortex-debug.registers.state.json
|
||||||
.vscode/c_cpp_properties.json
|
.vscode/compile_commands.json
|
||||||
|
.vscode/ipch/
|
||||||
|
|
||||||
|
|||||||
Vendored
+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
|
||||||
|
}
|
||||||
Vendored
-6
@@ -1,6 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"name": "PX4 default",
|
|
||||||
"preferredGenerator": "Ninja"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
Vendored
+13
-18
@@ -11,58 +11,53 @@ CONFIG:
|
|||||||
buildType: Debug
|
buildType: Debug
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_sitl_default
|
CONFIG: px4_sitl_default
|
||||||
px4_sitl_rtps:
|
px4_sitl_default_ASan:
|
||||||
short: px4_sitl_rtps
|
short: px4_sitl (Address Sanitizer)
|
||||||
buildType: RelWithDebInfo
|
buildType: AddressSanitizer
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_sitl_rtps
|
CONFIG: px4_sitl_default
|
||||||
px4_fmu-v2_default:
|
px4_fmu-v2_default:
|
||||||
short: px4_fmu-v2
|
short: px4_fmu-v2
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_fmu-v2_default
|
CONFIG: px4_fmu-v2_default
|
||||||
px4_fmu-v3_default:
|
px4_fmu-v3_default:
|
||||||
short: px4_fmu-v3
|
short: px4_fmu-v3
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_fmu-v3_default
|
CONFIG: px4_fmu-v3_default
|
||||||
px4_fmu-v4_default:
|
px4_fmu-v4_default:
|
||||||
short: px4_fmu-v4
|
short: px4_fmu-v4
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_fmu-v4_default
|
CONFIG: px4_fmu-v4_default
|
||||||
px4_fmu-v4pro_default:
|
px4_fmu-v4pro_default:
|
||||||
short: px4_fmu-v4pro
|
short: px4_fmu-v4pro
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_fmu-v4pro_default
|
CONFIG: px4_fmu-v4pro_default
|
||||||
px4_fmu-v5_default:
|
px4_fmu-v5_default:
|
||||||
short: px4_fmu-v5
|
short: px4_fmu-v5
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_fmu-v5_default
|
CONFIG: px4_fmu-v5_default
|
||||||
px4_fmu-v5_rtps:
|
|
||||||
short: px4_fmu-v5_rtps
|
|
||||||
buildType: MinRelSize
|
|
||||||
settings:
|
|
||||||
CONFIG: px4_fmu-v5_rtps
|
|
||||||
airmind_mindpx-v2_default:
|
airmind_mindpx-v2_default:
|
||||||
short: airmind_mindpx-v2
|
short: airmind_mindpx-v2
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: airmind_mindpx-v2_default
|
CONFIG: airmind_mindpx-v2_default
|
||||||
av_x-v1_default:
|
av_x-v1_default:
|
||||||
short: av-x
|
short: av-x
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: av_x-v1_default
|
CONFIG: av_x-v1_default
|
||||||
intel_aerofc-v1_default:
|
intel_aerofc-v1_default:
|
||||||
short: intel_aerofc-v1
|
short: intel_aerofc-v1
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: intel_aerofc-v1_default
|
CONFIG: intel_aerofc-v1_default
|
||||||
nxp_fmuk66-v3_default:
|
nxp_fmuk66-v3_default:
|
||||||
short: nxp_fmuk66-v3
|
short: nxp_fmuk66-v3
|
||||||
buildType: MinRelSize
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: nxp_fmuk66-v3_default
|
CONFIG: nxp_fmuk66-v3_default
|
||||||
|
|||||||
Vendored
+6
-2
@@ -2,12 +2,16 @@
|
|||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||||
// for the documentation about the extensions.json format
|
// for the documentation about the extensions.json format
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
|
"ajshort.ros",
|
||||||
"chiehyu.vscode-astyle",
|
"chiehyu.vscode-astyle",
|
||||||
|
"dan-c-underwood.arm",
|
||||||
"github.vscode-pull-request-github",
|
"github.vscode-pull-request-github",
|
||||||
"marus25.cortex-debug",
|
"marus25.cortex-debug",
|
||||||
"ms-python.python",
|
"ms-python.python",
|
||||||
"ms-vscode.cpptools",
|
"ms-vscode.cpptools",
|
||||||
|
"peterjausovec.vscode-docker",
|
||||||
"twxs.cmake",
|
"twxs.cmake",
|
||||||
"vector-of-bool.cmake-tools"
|
"vector-of-bool.cmake-tools",
|
||||||
|
"wholroyd.jinja"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Vendored
+163
-84
@@ -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"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+75
-3
@@ -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",
|
||||||
|
"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.cppStandard": "c++11",
|
||||||
"C_Cpp.default.cStandard": "c99",
|
"C_Cpp.default.cStandard": "c99",
|
||||||
"cmake.buildDirectory": "${workspaceRoot}/build/${variant:CONFIG}",
|
"C_Cpp.default.intelliSenseMode": "gcc-x64",
|
||||||
"cmake.autoRestartBuild": true,
|
"C_Cpp.errorSquiggles": "Disabled",
|
||||||
"cmake.configureOnOpen": true,
|
"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
|
||||||
}
|
}
|
||||||
Vendored
+79
-3
@@ -8,14 +8,90 @@
|
|||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "Tools/jmavsim_run.sh",
|
"command": "Tools/jmavsim_run.sh",
|
||||||
"isBackground": true,
|
"isBackground": true,
|
||||||
"args": ["-r", "500"],
|
"args": [
|
||||||
|
"-r",
|
||||||
|
"500"
|
||||||
|
],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceRoot}"
|
"cwd": "${workspaceRoot}"
|
||||||
},
|
},
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"reveal": "always",
|
"reveal": "always",
|
||||||
"panel": "dedicated"
|
"panel": "dedicated"
|
||||||
}
|
},
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": ".",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": ".",
|
||||||
|
"endsPattern": ".",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "jmavsim kill",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "kill $(ps aux | grep jmavsim | grep -v 'grep' | awk '{print $2}')",
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "gazebo build",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make px4_sitl_default sitl_gazebo",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "gazebo iris",
|
||||||
|
"type": "shell",
|
||||||
|
"dependsOn": "gazebo build",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"env": {
|
||||||
|
"GAZEBO_PLUGIN_PATH": "${workspaceRoot}/build/px4_sitl_default/build_gazebo",
|
||||||
|
"GAZEBO_MODEL_PATH": "${workspaceRoot}/Tools/sitl_gazebo/models"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"command": "gzserver --verbose ${workspaceRoot}/Tools/sitl_gazebo/worlds/iris.world",
|
||||||
|
"isBackground": true,
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
"panel": "dedicated"
|
||||||
|
},
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": ".",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": ".",
|
||||||
|
"endsPattern": ".",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "gazebo kill",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "killall gzserver",
|
||||||
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ target_link_libraries(px4 PRIVATE
|
|||||||
-fno-exceptions
|
-fno-exceptions
|
||||||
-fno-rtti
|
-fno-rtti
|
||||||
|
|
||||||
-Wl,--script=${PX4_BINARY_DIR_CYG}/NuttX/nuttx-config/scripts/ld.script
|
-Wl,--script=${PX4_BINARY_DIR_CYG}/NuttX/nuttx-config/scripts/script.ld
|
||||||
-Wl,-Map=${PX4_CONFIG}.map
|
-Wl,-Map=${PX4_CONFIG}.map
|
||||||
-Wl,--warn-common
|
-Wl,--warn-common
|
||||||
-Wl,--gc-sections
|
-Wl,--gc-sections
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ add_custom_command(
|
|||||||
${NUTTX_DIR}/arch/arm/include/math.h
|
${NUTTX_DIR}/arch/arm/include/math.h
|
||||||
${PX4_BINARY_DIR}/NuttX/nuttx-config/include/board.h
|
${PX4_BINARY_DIR}/NuttX/nuttx-config/include/board.h
|
||||||
${PX4_BINARY_DIR}/NuttX/nuttx-config/include/nsh_romfsimg.h
|
${PX4_BINARY_DIR}/NuttX/nuttx-config/include/nsh_romfsimg.h
|
||||||
${PX4_BINARY_DIR}/NuttX/nuttx-config/scripts/ld.script
|
${PX4_BINARY_DIR}/NuttX/nuttx-config/scripts/script.ld
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/nuttx_copy_config_dir.stamp
|
${CMAKE_CURRENT_BINARY_DIR}/nuttx_copy_config_dir.stamp
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove -f ${NUTTX_DIR}/include/nuttx/config.h
|
COMMAND ${CMAKE_COMMAND} -E remove -f ${NUTTX_DIR}/include/nuttx/config.h
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${NUTTX_CONFIG_DIR}/ ${PX4_BINARY_DIR}/NuttX/nuttx-config
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${NUTTX_CONFIG_DIR}/ ${PX4_BINARY_DIR}/NuttX/nuttx-config
|
||||||
@@ -125,7 +125,7 @@ add_custom_command(
|
|||||||
${NUTTX_SRC_DIR}/math.h
|
${NUTTX_SRC_DIR}/math.h
|
||||||
${NUTTX_SRC_DIR}/nsh_romfsimg.h
|
${NUTTX_SRC_DIR}/nsh_romfsimg.h
|
||||||
${NUTTX_CONFIG_DIR}/include/board.h
|
${NUTTX_CONFIG_DIR}/include/board.h
|
||||||
${NUTTX_CONFIG_DIR}/scripts/ld.script
|
${NUTTX_CONFIG_DIR}/scripts/script.ld
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/nuttx_copy.stamp
|
${CMAKE_CURRENT_BINARY_DIR}/nuttx_copy.stamp
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/apps_copy.stamp
|
${CMAKE_CURRENT_BINARY_DIR}/apps_copy.stamp
|
||||||
WORKING_DIRECTORY ${NUTTX_DIR}
|
WORKING_DIRECTORY ${NUTTX_DIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user