mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavsdk_tests: remove unused/not working test
We can add it again once fixedwing is supported. Until then, this is just confusing.
This commit is contained in:
parent
fb5b05ec39
commit
821f7c3cd9
@ -14,7 +14,6 @@ if(MAVSDK_FOUND)
|
||||
autopilot_tester.cpp
|
||||
test_multicopter_offboard.cpp
|
||||
test_mission_multicopter.cpp
|
||||
test_mission_plane.cpp
|
||||
test_mission_vtol.cpp
|
||||
)
|
||||
|
||||
|
||||
@ -1,57 +0,0 @@
|
||||
//
|
||||
// Plane mission test.
|
||||
//
|
||||
// Author: Lorenz Meier <lorenz@px4.io>, Julian Oes <julian@oes.ch>
|
||||
|
||||
#include <mavsdk/mavsdk.h>
|
||||
#include <mavsdk/plugins/action/action.h>
|
||||
#include <mavsdk/plugins/telemetry/telemetry.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "autopilot_tester.h"
|
||||
|
||||
|
||||
TEST_CASE("Takeoff and land (plane)", "[plane]")
|
||||
{
|
||||
AutopilotTester tester;
|
||||
tester.connect(connection_url);
|
||||
tester.wait_until_ready();
|
||||
tester.arm();
|
||||
tester.takeoff();
|
||||
tester.wait_until_hovering();
|
||||
tester.land();
|
||||
tester.wait_until_disarmed();
|
||||
}
|
||||
|
||||
// TODO: Add land pattern
|
||||
|
||||
// TEST_CASE("Fly square missions (plane)", "[plane]")
|
||||
// {
|
||||
// AutopilotTester tester;
|
||||
// tester.connect(connection_url);
|
||||
// tester.wait_until_ready();
|
||||
|
||||
// SECTION("Mission including RTL (plane)") {
|
||||
// AutopilotTester::MissionOptions mission_options;
|
||||
// mission_options.leg_length_m = 250.0;
|
||||
// mission_options.relative_altitude_m = 40.0;
|
||||
// mission_options.rtl_at_end = true;
|
||||
// tester.prepare_square_mission(mission_options);
|
||||
// tester.arm();
|
||||
// tester.execute_mission();
|
||||
// tester.wait_until_disarmed();
|
||||
// }
|
||||
|
||||
// SECTION("Mission with manual RTL (plane)") {
|
||||
// AutopilotTester::MissionOptions mission_options;
|
||||
// mission_options.leg_length_m = 250.0;
|
||||
// mission_options.relative_altitude_m = 40.0;
|
||||
// mission_options.rtl_at_end = false;
|
||||
// tester.prepare_square_mission(mission_options);
|
||||
// tester.arm();
|
||||
// tester.execute_mission();
|
||||
// tester.wait_until_hovering();
|
||||
// tester.execute_rtl();
|
||||
// tester.wait_until_disarmed();
|
||||
// }
|
||||
// }
|
||||
Loading…
x
Reference in New Issue
Block a user