mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 20:33:35 +08:00
MAVSDK tests: Add minimal plane example
This will add coverage for baseline plane controllers.
This commit is contained in:
committed by
Daniel Agar
parent
5dfc8f1362
commit
b0cb29ed82
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Multicopter mission test.
|
||||
//
|
||||
// Author: 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();
|
||||
}
|
||||
Reference in New Issue
Block a user