aboutsummaryrefslogtreecommitdiff
path: root/src/modules/land_detector/LandDetector.h
diff options
context:
space:
mode:
authorJohan Jansen <jnsn.johan@gmail.com>2015-01-15 14:36:04 +0100
committerJohan Jansen <jnsn.johan@gmail.com>2015-01-15 14:37:51 +0100
commit92add9cf8003c4fd8b01143626c3a101062dd9dd (patch)
treeceb8f5495f789e44f18baaecda8fc6bf22fcc007 /src/modules/land_detector/LandDetector.h
parente40d207311126b05a7fd87739fb72d2ae8d7d500 (diff)
downloadpx4-firmware-92add9cf8003c4fd8b01143626c3a101062dd9dd.tar.gz
px4-firmware-92add9cf8003c4fd8b01143626c3a101062dd9dd.tar.bz2
px4-firmware-92add9cf8003c4fd8b01143626c3a101062dd9dd.zip
LandDetector: Externalized algorithm parameters
Diffstat (limited to 'src/modules/land_detector/LandDetector.h')
-rw-r--r--src/modules/land_detector/LandDetector.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/land_detector/LandDetector.h b/src/modules/land_detector/LandDetector.h
index ba15ad498..09db6e474 100644
--- a/src/modules/land_detector/LandDetector.h
+++ b/src/modules/land_detector/LandDetector.h
@@ -89,6 +89,9 @@ protected:
static constexpr uint32_t LAND_DETECTOR_UPDATE_RATE = 50; /**< Run algorithm at 50Hz */
+ static constexpr uint64_t LAND_DETECTOR_TRIGGER_TIME = 2000000; /**< usec that landing conditions have to hold
+ before triggering a land */
+
protected:
orb_advert_t _landDetectedPub; /**< publisher for position in local frame */
struct vehicle_land_detected_s _landDetected; /**< local vehicle position */