diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-08 12:42:42 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-08 12:42:42 +0200 |
commit | daf16184202b02119aa1ac83cb82cf85979d43f9 (patch) | |
tree | 1db1362835651c692cdd625453aa587645542ac9 /src/lib/launchdetection/launchdetection_params.c | |
parent | ee2eb98167c282aea88714e1a9beea9e523f2e55 (diff) | |
download | px4-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/launchdetection_params.c')
-rw-r--r-- | src/lib/launchdetection/launchdetection_params.c | 16 |
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. * |