aboutsummaryrefslogtreecommitdiff
path: root/src/lib/launchdetection/LaunchDetector.cpp
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-03-09 22:10:46 +0400
committerAnton Babushkin <anton.babushkin@me.com>2014-03-09 22:10:46 +0400
commit7de6513950e7e66606cc34e92a6e0dfb6fc55c9d (patch)
treefc2486917ac6beda289c99e32f6865df213a89b5 /src/lib/launchdetection/LaunchDetector.cpp
parent320624e995d46d80db0d219d9c61af08e1b8cadf (diff)
parent647142764fa3ffd5d99f4d43950975cc6a19bded (diff)
downloadpx4-firmware-7de6513950e7e66606cc34e92a6e0dfb6fc55c9d.tar.gz
px4-firmware-7de6513950e7e66606cc34e92a6e0dfb6fc55c9d.tar.bz2
px4-firmware-7de6513950e7e66606cc34e92a6e0dfb6fc55c9d.zip
Merge branch 'master' into beta_mavlink2
Diffstat (limited to 'src/lib/launchdetection/LaunchDetector.cpp')
-rw-r--r--src/lib/launchdetection/LaunchDetector.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/launchdetection/LaunchDetector.cpp b/src/lib/launchdetection/LaunchDetector.cpp
index df9f2fe95..4109a90ba 100644
--- a/src/lib/launchdetection/LaunchDetector.cpp
+++ b/src/lib/launchdetection/LaunchDetector.cpp
@@ -59,6 +59,12 @@ LaunchDetector::~LaunchDetector()
}
+void LaunchDetector::reset()
+{
+ /* Reset all detectors */
+ launchMethods[0]->reset();
+}
+
void LaunchDetector::update(float accel_x)
{
if (launchdetection_on.get() == 1) {