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 <jonspero@me.com>
This commit is contained in:
jonas committed 2026-11-20 17:49:41 +01:00
1 parent 3876e8860c
commit a7c85d305c
1 file changed
+2
@@ -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()