mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 11:57:34 +08:00
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "SITL (Ignition Gazebo)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"${workspaceFolder}/ROMFS/px4fmu_common",
|
|
"-s", "etc/init.d-posix/rcS"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${command:cmake.buildDirectory}/rootfs",
|
|
"environment": [
|
|
{
|
|
"name": "PX4_SIM_MODEL",
|
|
"value": "ign_${input:PX4_SIM_MODEL}"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"preLaunchTask": "ign gazebo",
|
|
"postDebugTask": "ign 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",
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"type": "pickString",
|
|
"id": "PX4_SIM_MODEL",
|
|
"description": "PX4_SIM_MODEL",
|
|
"options": [
|
|
"x500",
|
|
"x4"
|
|
],
|
|
"default": "x500"
|
|
}
|
|
]
|
|
}
|