aboutsummaryrefslogtreecommitdiff
path: root/src/lib/launchdetection/CatapultLaunchMethod.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-02-17 19:48:45 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-02-17 20:45:05 +0100
commitacf680389e95c82d2e0df1253f16842d320f3504 (patch)
tree3306566b97aae41ea080fd5e33b2ce6609b2e81b /src/lib/launchdetection/CatapultLaunchMethod.h
parent838290fa63cf5592e5c9d7590d0f359f5f81aac3 (diff)
downloadpx4-firmware-acf680389e95c82d2e0df1253f16842d320f3504.tar.gz
px4-firmware-acf680389e95c82d2e0df1253f16842d320f3504.tar.bz2
px4-firmware-acf680389e95c82d2e0df1253f16842d320f3504.zip
launchdetector: add reset, #663
Diffstat (limited to 'src/lib/launchdetection/CatapultLaunchMethod.h')
-rw-r--r--src/lib/launchdetection/CatapultLaunchMethod.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/launchdetection/CatapultLaunchMethod.h b/src/lib/launchdetection/CatapultLaunchMethod.h
index e943f11e9..b8476b4c8 100644
--- a/src/lib/launchdetection/CatapultLaunchMethod.h
+++ b/src/lib/launchdetection/CatapultLaunchMethod.h
@@ -55,11 +55,10 @@ public:
void update(float accel_x);
bool getLaunchDetected();
void updateParams();
+ void reset();
private:
hrt_abstime last_timestamp;
-// float threshold_accel_raw;
-// float threshold_time;
float integrator;
bool launchDetected;