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-17 11:46:57 +02:00
committed by Daniel Agar
parent 1cee945a22
commit 46c00ca6a4

8
.vscode/tasks.json vendored
View File

@@ -14,7 +14,10 @@
"-l"
],
"options": {
"cwd": "${workspaceRoot}"
"cwd": "${workspaceRoot}",
"env": {
"PX4_SIM_SPEED_FACTOR": "1"
}
},
"presentation": {
"reveal": "always",
@@ -61,7 +64,8 @@
"cwd": "${workspaceRoot}",
"env": {
"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",