From 9976825d8010fa5e5978ce79daebf7465c833bba Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 15 Jul 2026 14:21:07 +1200 Subject: [PATCH] test(mavsdk): loosen takeoff altitude reach tolerance to 0.1m The 0.01m (1cm) tolerance was not reachable within the 15s sim-time window for the standard_vtol, causing the takeoff-and-hold test to time out. Use 0.1m, which still verifies altitude hold but is physically achievable, and stays below the 0.15m hold-monitoring tolerance. Signed-off-by: Julian Oes --- test/mavsdk_tests/test_multicopter_basics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mavsdk_tests/test_multicopter_basics.cpp b/test/mavsdk_tests/test_multicopter_basics.cpp index b7152bc8779..5e6da443ae5 100644 --- a/test/mavsdk_tests/test_multicopter_basics.cpp +++ b/test/mavsdk_tests/test_multicopter_basics.cpp @@ -58,7 +58,7 @@ TEST_CASE("Takeoff and hold position", "[multicopter][vtol]") tester.arm(); tester.takeoff(); tester.wait_until_hovering(); - tester.wait_until_altitude(ground_altitude + takeoff_altitude, std::chrono::seconds(15), 0.01f); + tester.wait_until_altitude(ground_altitude + takeoff_altitude, std::chrono::seconds(15), 0.1f); // Monitor altitude and fail if it exceeds the tolerance tester.start_checking_altitude(0.15);