From 57297234e2166ec557566882e3b77a8e00bba635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 8 Aug 2023 11:30:12 +0200 Subject: [PATCH] autopilot_tester: slower descend for fly_forward_in_offboard_attitude As CI was sometimes failing --- test/mavsdk_tests/autopilot_tester.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mavsdk_tests/autopilot_tester.cpp b/test/mavsdk_tests/autopilot_tester.cpp index 0f4856baa5..fb7cfdd9f7 100644 --- a/test/mavsdk_tests/autopilot_tester.cpp +++ b/test/mavsdk_tests/autopilot_tester.cpp @@ -532,10 +532,10 @@ void AutopilotTester::fly_forward_in_offboard_attitude() CHECK(fabsf(attitude.pitch_deg - attitude_estimate.pitch_deg) < 5.f); // Descend - attitude.thrust_value = 0.2f; + attitude.thrust_value = 0.4f; attitude.pitch_deg = 0.f; - for (unsigned i = 0; i < 3 * offboard_rate_hz; ++i) { + for (unsigned i = 0; i < 6 * offboard_rate_hz; ++i) { CHECK(_offboard->set_attitude(attitude) == Offboard::Result::Success); sleep_for(std::chrono::milliseconds(1000 / offboard_rate_hz)); }