VSCode: Autogenerating launch.json entry for the tilted_hex gazebo simulation

- Couldn't make the recent changes in tasks from master branch work, so:
	- Added gzclient to the command for gazebo tiltedhex and gazebo kill tasks
	- Also used the desired presentation for the gazebo tiltedhex task
This commit is contained in:
Azarakhsh Keipour
2020-01-21 18:23:07 -05:00
parent 4afd11d09c
commit c386938839
2 changed files with 86 additions and 41 deletions
+49
View File
@@ -50,6 +50,55 @@
]
}
},
{
"name": "SITL (gazebo tilthex)",
"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": "${command:cmake.buildDirectory}/tmp",
"environment": [
{
"name": "PX4_SIM_MODEL",
"value": "hexa_x_tilt"
}
],
"externalConsole": false,
"preLaunchTask": "gazebo hexa_x_tilt",
"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",