mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
PX4_SIM model need the simulator (gz_) prefix Fix post debug task Add x500_depth, rc_cessna, standard_vtol Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it>
233 lines
7.6 KiB
JSON
233 lines
7.6 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "SITL (gz)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"${workspaceFolder}/ROMFS/px4fmu_common"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${command:cmake.buildDirectory}/rootfs",
|
|
"environment": [
|
|
{
|
|
"name": "PX4_SIM_MODEL",
|
|
"value": "gz_${input:PX4_GZ_MODEL}"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"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 (sihsim_quadx SYS_AUTOSTART=10040)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"${workspaceFolder}/ROMFS/px4fmu_common"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${command:cmake.buildDirectory}/rootfs",
|
|
"environment": [
|
|
{
|
|
"name": "PX4_SYS_AUTOSTART",
|
|
"value": "10040"
|
|
}
|
|
],
|
|
"postDebugTask": "px4_sitl_cleanup",
|
|
"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",
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "SITL (Gazebo Classic iris)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"${workspaceFolder}/ROMFS/px4fmu_common"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${command:cmake.buildDirectory}/rootfs",
|
|
"environment": [
|
|
{
|
|
"name": "PX4_SIM_MODEL",
|
|
"value": "gazebo-classic_iris"
|
|
}
|
|
],
|
|
"externalConsole": false,
|
|
"preLaunchTask": "gazebo-classic",
|
|
"postDebugTask": "gazebo-classic 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 SYS_AUTOSTART=10017)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
"args": [
|
|
"${workspaceFolder}/ROMFS/px4fmu_common"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${command:cmake.buildDirectory}/rootfs",
|
|
"environment": [
|
|
{
|
|
"name": "PX4_SYS_AUTOSTART",
|
|
"value": "10017"
|
|
}
|
|
],
|
|
"postDebugTask": "jmavsim 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": {
|
|
"MIMode": "lldb",
|
|
"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"
|
|
],
|
|
"stopAtEntry": false,
|
|
"cwd": "${command:cmake.buildDirectory}/rootfs",
|
|
"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",
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"type": "pickString",
|
|
"id": "PX4_GZ_MODEL",
|
|
"description": "GZ vehicle model",
|
|
"options": [
|
|
"x500",
|
|
"x500_depth",
|
|
"rc_cessna",
|
|
"standard_vtol",
|
|
],
|
|
"default": "x500"
|
|
}
|
|
]
|
|
}
|