mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 01:17:51 +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