mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:13:33 +08:00
added class for vtol landing detection
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
|
||||
#include "FixedwingLandDetector.h"
|
||||
#include "MulticopterLandDetector.h"
|
||||
#include "VtolLandDetector.h"
|
||||
|
||||
//Function prototypes
|
||||
static int land_detector_start(const char *mode);
|
||||
@@ -113,6 +114,9 @@ static int land_detector_start(const char *mode)
|
||||
} else if (!strcmp(mode, "multicopter")) {
|
||||
land_detector_task = new MulticopterLandDetector();
|
||||
|
||||
} else if (!strcmp(mode, "vtol")) {
|
||||
land_detector_task = new VtolLandDetector();
|
||||
|
||||
} else {
|
||||
warnx("[mode] must be either 'fixedwing' or 'multicopter'");
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user