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:
Daniel Leonard Robinson
2020-08-10 08:52:51 +02:00
committed by GitHub
co-authored by Anton Erasmus Beat Küng
parent 454433c2ef
commit fa4818e467
18 changed files with 687 additions and 2 deletions
@@ -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;
}