From 4ad7ea6c1a7e8e2837e24dcd2c9546486e19de80 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 26 Jun 2020 10:54:11 +0200 Subject: [PATCH] mavsdk_tests: increase the poll time resolution With only 10 steps for e.g. 60 seconds we are likely to miss updates. --- test/mavsdk_tests/autopilot_tester.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mavsdk_tests/autopilot_tester.h b/test/mavsdk_tests/autopilot_tester.h index 3e26a88961..0318852c44 100644 --- a/test/mavsdk_tests/autopilot_tester.h +++ b/test/mavsdk_tests/autopilot_tester.h @@ -114,9 +114,9 @@ bool poll_condition_with_timeout( unsigned iteration = 0; while (!fun()) { - std::this_thread::sleep_for(duration_ms / 10); + std::this_thread::sleep_for(duration_ms / 100); - if (iteration++ >= 10) { + if (iteration++ >= 100) { return false; } }