vscode: add PX4_SIM_SPEED_FACTOR

This env variable can be changed to adapt the simulation speed.
This commit is contained in:
Julian Oes
2019-06-18 01:56:49 +02:00
committed by Daniel Agar
parent 1cee945a22
commit 46c00ca6a4
+6 -2
View File
@@ -14,7 +14,10 @@
"-l" "-l"
], ],
"options": { "options": {
"cwd": "${workspaceRoot}" "cwd": "${workspaceRoot}",
"env": {
"PX4_SIM_SPEED_FACTOR": "1"
}
}, },
"presentation": { "presentation": {
"reveal": "always", "reveal": "always",
@@ -61,7 +64,8 @@
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"env": { "env": {
"GAZEBO_PLUGIN_PATH": "${workspaceRoot}/build/px4_sitl_default/build_gazebo", "GAZEBO_PLUGIN_PATH": "${workspaceRoot}/build/px4_sitl_default/build_gazebo",
"GAZEBO_MODEL_PATH": "${workspaceRoot}/Tools/sitl_gazebo/models" "GAZEBO_MODEL_PATH": "${workspaceRoot}/Tools/sitl_gazebo/models",
"PX4_SIM_SPEED_FACTOR": "1"
} }
}, },
"command": "gzserver --verbose ${workspaceRoot}/Tools/sitl_gazebo/worlds/iris.world & gzclient", "command": "gzserver --verbose ${workspaceRoot}/Tools/sitl_gazebo/worlds/iris.world & gzclient",