mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 08:03:35 +08:00
mavsdk_tests: add two new tests for VTOLs
- add functionality to specify world name for simulation in case name - add test for triggering an airspeed invalidation in case of pitot blockage - add test for high wind (ramped up wind over short period) to NOT invalidate airspeed in this case Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -221,7 +221,8 @@ class GzserverRunner(Runner):
|
||||
case: str,
|
||||
speed_factor: float,
|
||||
verbose: bool,
|
||||
build_dir: str):
|
||||
build_dir: str,
|
||||
world_name: str):
|
||||
super().__init__(log_dir, model, case, verbose)
|
||||
self.name = "gzserver"
|
||||
self.cwd = workspace_dir
|
||||
@@ -234,7 +235,7 @@ class GzserverRunner(Runner):
|
||||
self.args = ["-o0", "-e0", "gzserver", "--verbose",
|
||||
os.path.join(workspace_dir,
|
||||
PX4_GAZEBO_WORLDS,
|
||||
"empty.world")]
|
||||
world_name)]
|
||||
|
||||
def has_started_ok(self) -> bool:
|
||||
# Wait until gzerver has started and connected to gazebo master.
|
||||
|
||||
Reference in New Issue
Block a user