added class for vtol landing detection

This commit is contained in:
tumbili
2015-11-25 13:41:57 +01:00
parent 4e6ec2efa8
commit 8832e178b0
5 changed files with 232 additions and 6 deletions
@@ -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;