Skip to content

Commit

Permalink
vscode: add PX4_SIM_SPEED_FACTOR
Browse files Browse the repository at this point in the history
This env variable can be changed to adapt the simulation speed.
  • Loading branch information
julianoes authored and dagar committed Jun 17, 2019
1 parent 1cee945 commit 46c00ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"-l"
],
"options": {
"cwd": "${workspaceRoot}"
"cwd": "${workspaceRoot}",
"env": {
"PX4_SIM_SPEED_FACTOR": "1"
}
},
"presentation": {
"reveal": "always",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 46c00ca

Please sign in to comment.