mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 01:31:37 +08:00
vscode: add PX4_SIM_SPEED_FACTOR
This env variable can be changed to adapt the simulation speed.
This commit is contained in:
Vendored
+6
-2
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user