aboutsummaryrefslogtreecommitdiff
path: root/src/lib/launchdetection/launchdetection_params.c
diff options
context:
space:
mode:
authorsjwilks <sjwilks@gmail.com>2014-09-11 09:49:14 +0200
committersjwilks <sjwilks@gmail.com>2014-09-11 09:49:14 +0200
commit852b36661d5f03d76c8217444554122c3cadfba0 (patch)
tree3814de9a3f7bd92c68f38975184f86139accef29 /src/lib/launchdetection/launchdetection_params.c
parente4f3fd88f0623659e6759b9b076be15e4e2f5703 (diff)
parent26e6d7e12e5036b0e3008b0543d7771d3e527a39 (diff)
downloadpx4-firmware-852b36661d5f03d76c8217444554122c3cadfba0.tar.gz
px4-firmware-852b36661d5f03d76c8217444554122c3cadfba0.tar.bz2
px4-firmware-852b36661d5f03d76c8217444554122c3cadfba0.zip
Merge pull request #1356 from PX4/launchpitchlimit_master
FW: additional upper pitch limit during launch
Diffstat (limited to 'src/lib/launchdetection/launchdetection_params.c')
-rw-r--r--src/lib/launchdetection/launchdetection_params.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/launchdetection/launchdetection_params.c b/src/lib/launchdetection/launchdetection_params.c
index d35eb11f6..e3aa7ab2d 100644
--- a/src/lib/launchdetection/launchdetection_params.c
+++ b/src/lib/launchdetection/launchdetection_params.c
@@ -80,7 +80,7 @@ PARAM_DEFINE_FLOAT(LAUN_CAT_T, 0.05f);
/**
* Motor delay
*
- * Delay between starting attitude control and powering up the thorttle (giving throttle control to the controller)
+ * Delay between starting attitude control and powering up the throttle (giving throttle control to the controller)
* Before this timespan is up the throttle will be set to LAUN_THR_PRE, set to 0 to deactivate
*
* @unit seconds
@@ -88,6 +88,20 @@ PARAM_DEFINE_FLOAT(LAUN_CAT_T, 0.05f);
* @group Launch detection
*/
PARAM_DEFINE_FLOAT(LAUN_CAT_MDEL, 0.0f);
+
+/**
+ * Maximum pitch before the throttle is powered up (during motor delay phase)
+ *
+ * This is an extra limit for the maximum pitch which is imposed in the phase before the throttle turns on.
+ * This allows to limit the maximum pitch angle during a bungee launch (make the launch less steep).
+ *
+ * @unit deg
+ * @min 0
+ * @max 45
+ * @group Launch detection
+ */
+PARAM_DEFINE_FLOAT(LAUN_CAT_PMAX, 30.0f);
+
/**
* Throttle setting while detecting launch.
*