mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavsdk_tests: pass PX4_HOME_ env variables on
This way tests can be run at different locations.
This commit is contained in:
parent
4a91d791b1
commit
759e3d6a04
@ -183,7 +183,10 @@ class GzserverRunner(Runner):
|
||||
"GAZEBO_MODEL_PATH":
|
||||
workspace_dir + "/Tools/sitl_gazebo/models",
|
||||
"PX4_SIM_SPEED_FACTOR": str(speed_factor),
|
||||
"DISPLAY": os.environ['DISPLAY']}
|
||||
"DISPLAY": os.environ['DISPLAY'],
|
||||
"PX4_HOME_LAT": os.environ['PX4_HOME_LAT'],
|
||||
"PX4_HOME_LON": os.environ['PX4_HOME_LON'],
|
||||
"PX4_HOME_ALT": os.environ['PX4_HOME_ALT']}
|
||||
self.cmd = "gzserver"
|
||||
self.args = ["--verbose",
|
||||
workspace_dir + "/Tools/sitl_gazebo/worlds/" +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user