Land detector: Add mode for rovers

This commit is contained in:
Lorenz Meier
2017-04-02 21:52:18 +02:00
parent bbd1906dfb
commit 5f135acf33
6 changed files with 169 additions and 5 deletions
@@ -55,6 +55,7 @@
#include "FixedwingLandDetector.h"
#include "MulticopterLandDetector.h"
#include "VtolLandDetector.h"
#include "RoverLandDetector.h"
namespace land_detector
@@ -122,6 +123,9 @@ static int land_detector_start(const char *mode)
} else if (!strcmp(mode, "vtol")) {
land_detector_task = new VtolLandDetector();
} else if (!strcmp(mode, "rover")) {
land_detector_task = new RoverLandDetector();
} else {
PX4_WARN("[mode] must be either 'fixedwing', 'multicopter', or 'vtol'");
return -1;