aboutsummaryrefslogtreecommitdiff
path: root/src/lib/launchdetection/CatapultLaunchMethod.h
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-09-08 12:42:42 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-09-08 12:42:42 +0200
commitdaf16184202b02119aa1ac83cb82cf85979d43f9 (patch)
tree1db1362835651c692cdd625453aa587645542ac9 /src/lib/launchdetection/CatapultLaunchMethod.h
parentee2eb98167c282aea88714e1a9beea9e523f2e55 (diff)
downloadpx4-firmware-daf16184202b02119aa1ac83cb82cf85979d43f9.tar.gz
px4-firmware-daf16184202b02119aa1ac83cb82cf85979d43f9.tar.bz2
px4-firmware-daf16184202b02119aa1ac83cb82cf85979d43f9.zip
additional upper pitch limit during launch
The pitch limit can be used by the laucnhdetector to limit pitch during critical phases of a launch. For example this can be used to limit pitch while attached to a bungee differently from the standard pitch limit.
Diffstat (limited to 'src/lib/launchdetection/CatapultLaunchMethod.h')
-rw-r--r--src/lib/launchdetection/CatapultLaunchMethod.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/launchdetection/CatapultLaunchMethod.h b/src/lib/launchdetection/CatapultLaunchMethod.h
index d918c3a76..321dfb1de 100644
--- a/src/lib/launchdetection/CatapultLaunchMethod.h
+++ b/src/lib/launchdetection/CatapultLaunchMethod.h
@@ -59,6 +59,7 @@ public:
void update(float accel_x);
LaunchDetectionResult getLaunchDetected() const;
void reset();
+ float getPitchMax(float pitchMaxDefault);
private:
hrt_abstime last_timestamp;
@@ -70,6 +71,9 @@ private:
control::BlockParamFloat thresholdAccel;
control::BlockParamFloat thresholdTime;
control::BlockParamFloat motorDelay;
+ control::BlockParamFloat pitchMaxPreThrottle; /**< Upper pitch limit before throttle is turned on.
+ Can be used to make sure that the AC does not climb
+ too much while attached to a bungee */
};