Browse Source

mavsdk_tests: increase the poll time resolution

With only 10 steps for e.g. 60 seconds we are likely to miss updates.
sbg
Julian Oes 5 years ago committed by Daniel Agar
parent
commit
4ad7ea6c1a
  1. 4
      test/mavsdk_tests/autopilot_tester.h

4
test/mavsdk_tests/autopilot_tester.h

@ -114,9 +114,9 @@ bool poll_condition_with_timeout( @@ -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;
}
}

Loading…
Cancel
Save