mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
247 lines
8.2 KiB
JSON
247 lines
8.2 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"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",
|
|
"externalConsole": false,
|
|
"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",
|
|
"externalConsole": true,
|
|
"setupCommands": [
|
|
{
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "SITL (gazebo plane)",
|
|
"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": "plane"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"preLaunchTask": "gazebo plane",
|
|
"postDebugTask": "gazebo kill",
|
|
"linux": {
|
|
"MIMode": "gdb",
|
|
"externalConsole": false,
|
|
"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",
|
|
"externalConsole": true,
|
|
"setupCommands": [
|
|
{
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "SITL (gazebo standard_vtol)",
|
|
"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": "standard_vtol"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"preLaunchTask": "gazebo standard_vtol",
|
|
"postDebugTask": "gazebo kill",
|
|
"linux": {
|
|
"MIMode": "gdb",
|
|
"externalConsole": false,
|
|
"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",
|
|
"externalConsole": true,
|
|
"setupCommands": [
|
|
{
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
],
|
|
"preLaunchTask": "jmavsim",
|
|
"postDebugTask": "jmavsim kill",
|
|
"linux": {
|
|
"MIMode": "gdb",
|
|
"externalConsole": false,
|
|
"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",
|
|
"externalConsole": true,
|
|
"setupCommands": [
|
|
{
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
],
|
|
"linux": {
|
|
"MIMode": "gdb",
|
|
"externalConsole": false,
|
|
"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",
|
|
"externalConsole": true,
|
|
"setupCommands": [
|
|
{
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
}
|
|
]
|
|
}
|
|
},
|
|
]
|
|
}
|