mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Tests: Add VTOL test
This is a first initial VTOL test.
This commit is contained in:
@@ -14,7 +14,7 @@ void AutopilotTester::connect(const std::string uri)
|
||||
|
||||
std::cout << "Waiting for system connect" << std::endl;
|
||||
REQUIRE(poll_condition_with_timeout(
|
||||
[this]() { return _mavsdk.is_connected(); }, std::chrono::seconds(10)));
|
||||
[this]() { return _mavsdk.is_connected(); }, std::chrono::seconds(25)));
|
||||
|
||||
auto& system = _mavsdk.system();
|
||||
|
||||
@@ -56,6 +56,18 @@ void AutopilotTester::land()
|
||||
REQUIRE(result == Action::Result::SUCCESS);
|
||||
}
|
||||
|
||||
void AutopilotTester::transition_to_fixedwing()
|
||||
{
|
||||
const auto result = _action->transition_to_fixedwing();
|
||||
REQUIRE(result == Action::Result::SUCCESS);
|
||||
}
|
||||
|
||||
void AutopilotTester::transition_to_multicopter()
|
||||
{
|
||||
const auto result = _action->transition_to_multicopter();
|
||||
REQUIRE(result == Action::Result::SUCCESS);
|
||||
}
|
||||
|
||||
void AutopilotTester::wait_until_disarmed()
|
||||
{
|
||||
REQUIRE(poll_condition_with_timeout(
|
||||
|
||||
Reference in New Issue
Block a user