mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 05:53:34 +08:00
vehicles: add new vehicle type: Airship (#14862)
Co-authored-by: Anton Erasmus <anton@flycloudline.com> Co-authored-by: Beat Küng <beat-kueng@gmx.net>
This commit is contained in:
co-authored by
Anton Erasmus
Beat Küng
parent
454433c2ef
commit
fa4818e467
@@ -49,6 +49,7 @@
|
||||
#include "MulticopterLandDetector.h"
|
||||
#include "RoverLandDetector.h"
|
||||
#include "VtolLandDetector.h"
|
||||
#include "AirshipLandDetector.h"
|
||||
|
||||
|
||||
namespace land_detector
|
||||
@@ -77,6 +78,9 @@ int LandDetector::task_spawn(int argc, char *argv[])
|
||||
} else if (strcmp(argv[1], "rover") == 0) {
|
||||
obj = new RoverLandDetector();
|
||||
|
||||
} else if (strcmp(argv[1], "airship") == 0) {
|
||||
obj = new AirshipLandDetector();
|
||||
|
||||
} else {
|
||||
print_usage("unknown mode");
|
||||
return PX4_ERROR;
|
||||
@@ -138,7 +142,7 @@ The module runs periodically on the HP work queue.
|
||||
|
||||
PRINT_MODULE_USAGE_NAME("land_detector", "system");
|
||||
PRINT_MODULE_USAGE_COMMAND_DESCR("start", "Start the background task");
|
||||
PRINT_MODULE_USAGE_ARG("fixedwing|multicopter|vtol|rover", "Select vehicle type", false);
|
||||
PRINT_MODULE_USAGE_ARG("fixedwing|multicopter|vtol|rover|airship", "Select vehicle type", false);
|
||||
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user