mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
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 <julian@oes.ch>
This commit is contained in:
1 parent
8e9ab68f11
commit
9976825d80
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user