mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 01:23:34 +08:00
Speed up mavsdk sitl tests
This commit is contained in:
@@ -124,10 +124,10 @@ void AutopilotTester::transition_to_multicopter()
|
||||
REQUIRE(result == Action::Result::SUCCESS);
|
||||
}
|
||||
|
||||
void AutopilotTester::wait_until_disarmed()
|
||||
void AutopilotTester::wait_until_disarmed(std::chrono::seconds timeout_duration)
|
||||
{
|
||||
REQUIRE(poll_condition_with_timeout(
|
||||
[this]() { return !_telemetry->armed(); }, std::chrono::seconds(60)));
|
||||
[this]() { return !_telemetry->armed(); }, timeout_duration));
|
||||
}
|
||||
|
||||
void AutopilotTester::wait_until_hovering()
|
||||
|
||||
Reference in New Issue
Block a user