From a7c85d305cbd32388b71263ada37d00da88ce351 Mon Sep 17 00:00:00 2001 From: jonas Date: Thu, 19 Nov 2026 11:10:22 +0100 Subject: [PATCH] test(mavsdk_tests): wait for the takeoff altitude in the geofence tests The navigator reads parameter changes at most once per second. The altitude test sets two limits and then the takeoff altitude, so in a slow build the vehicle took off to the default 2.5 m and never reached the 10 m the test waits for (AddressSanitizer job). Wait one second before arming, as the control allocation tests do. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: jonas --- test/mavsdk_tests/test_multicopter_contingency_geofence.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/mavsdk_tests/test_multicopter_contingency_geofence.py b/test/mavsdk_tests/test_multicopter_contingency_geofence.py index 63d53fd2c7a..3ef3e9b7d01 100644 --- a/test/mavsdk_tests/test_multicopter_contingency_geofence.py +++ b/test/mavsdk_tests/test_multicopter_contingency_geofence.py @@ -15,6 +15,8 @@ POSITION_TOLERANCE_M = 2.0 def take_off(tester: AutopilotTesterGeofence) -> None: tester.set_takeoff_altitude(TAKEOFF_ALTITUDE_M) + # The navigator reads parameter changes at most once per second. + tester.sleep_for(1) tester.arm() tester.takeoff() tester.wait_until_hovering()