mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
mavsdk_tests: use global position instead of local
We are currently not testing with flow only anyway, so we might as well remove this for now.
This commit is contained in:
@@ -35,12 +35,12 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("Offboard takeoff and land", "[multicopter][offboard][nogps]")
|
TEST_CASE("Offboard takeoff and land", "[multicopter][offboard]")
|
||||||
{
|
{
|
||||||
AutopilotTester tester;
|
AutopilotTester tester;
|
||||||
Offboard::PositionNedYaw takeoff_position {0.0f, 0.0f, -2.0f, 0.0f};
|
Offboard::PositionNedYaw takeoff_position {0.0f, 0.0f, -2.0f, 0.0f};
|
||||||
tester.connect(connection_url);
|
tester.connect(connection_url);
|
||||||
tester.wait_until_ready_local_position_only();
|
tester.wait_until_ready();
|
||||||
tester.store_home();
|
tester.store_home();
|
||||||
tester.arm();
|
tester.arm();
|
||||||
std::chrono::seconds goto_timeout = std::chrono::seconds(90);
|
std::chrono::seconds goto_timeout = std::chrono::seconds(90);
|
||||||
@@ -50,7 +50,7 @@ TEST_CASE("Offboard takeoff and land", "[multicopter][offboard][nogps]")
|
|||||||
tester.check_home_within(1.0f);
|
tester.check_home_within(1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Offboard position control", "[multicopter][offboard][nogps]")
|
TEST_CASE("Offboard position control", "[multicopter][offboard]")
|
||||||
{
|
{
|
||||||
AutopilotTester tester;
|
AutopilotTester tester;
|
||||||
Offboard::PositionNedYaw takeoff_position {0.0f, 0.0f, -2.0f, 0.0f};
|
Offboard::PositionNedYaw takeoff_position {0.0f, 0.0f, -2.0f, 0.0f};
|
||||||
@@ -58,7 +58,7 @@ TEST_CASE("Offboard position control", "[multicopter][offboard][nogps]")
|
|||||||
Offboard::PositionNedYaw setpoint_2 {5.0f, 5.0f, -4.0f, 180.0f};
|
Offboard::PositionNedYaw setpoint_2 {5.0f, 5.0f, -4.0f, 180.0f};
|
||||||
Offboard::PositionNedYaw setpoint_3 {5.0f, 0.0f, -4.0f, 90.0f};
|
Offboard::PositionNedYaw setpoint_3 {5.0f, 0.0f, -4.0f, 90.0f};
|
||||||
tester.connect(connection_url);
|
tester.connect(connection_url);
|
||||||
tester.wait_until_ready_local_position_only();
|
tester.wait_until_ready();
|
||||||
tester.store_home();
|
tester.store_home();
|
||||||
tester.arm();
|
tester.arm();
|
||||||
std::chrono::seconds goto_timeout = std::chrono::seconds(90);
|
std::chrono::seconds goto_timeout = std::chrono::seconds(90);
|
||||||
|
|||||||
Reference in New Issue
Block a user