mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 14:23:34 +08:00
Land detector: Add mode for rovers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user