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:
Silvan Fuhrer
2023-11-09 09:42:43 +01:00
parent 29714a0fba
commit 5efcde7412
11 changed files with 246 additions and 7 deletions
+3 -2
View File
@@ -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.