PX4 Firmware
PX4 Autopilot Software http://px4.io
land_detector_params_mc.c
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright (c) 2014-2016 PX4 Development Team. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in
13  * the documentation and/or other materials provided with the
14  * distribution.
15  * 3. Neither the name PX4 nor the names of its contributors may be
16  * used to endorse or promote products derived from this software
17  * without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
26  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30  * POSSIBILITY OF SUCH DAMAGE.
31  *
32  ****************************************************************************/
33 
34 /**
35  * Multicopter max climb rate
36  *
37  * Maximum vertical velocity allowed in the landed state (m/s up and down)
38  *
39  * @unit m/s
40  * @decimal 1
41  *
42  * @group Land Detector
43  */
44 PARAM_DEFINE_FLOAT(LNDMC_Z_VEL_MAX, 0.50f);
45 
46 /**
47  * Multicopter max horizontal velocity
48  *
49  * Maximum horizontal velocity allowed in the landed state (m/s)
50  *
51  * @unit m/s
52  * @decimal 1
53  *
54  * @group Land Detector
55  */
56 PARAM_DEFINE_FLOAT(LNDMC_XY_VEL_MAX, 1.5f);
57 
58 /**
59  * Multicopter max rotation
60  *
61  * Maximum allowed angular velocity around each axis allowed in the landed state.
62  *
63  * @unit deg/s
64  * @decimal 1
65  *
66  * @group Land Detector
67  */
68 PARAM_DEFINE_FLOAT(LNDMC_ROT_MAX, 20.0f);
69 
70 /**
71  * Multicopter specific force threshold
72  *
73  * Multicopter threshold on the specific force measured by accelerometers in m/s^2 for free-fall detection
74  *
75  * @unit m/s^2
76  * @min 0.1
77  * @max 10
78  * @decimal 2
79  *
80  * @group Land Detector
81  */
82 PARAM_DEFINE_FLOAT(LNDMC_FFALL_THR, 2.0f);
83 
84 /**
85  * Multicopter free-fall trigger time
86  *
87  * Seconds (decimal) that freefall conditions have to met before triggering a freefall.
88  * Minimal value is limited by LAND_DETECTOR_UPDATE_RATE=50Hz in landDetector.h
89  *
90  * @unit s
91  * @min 0.02
92  * @max 5
93  * @decimal 2
94  *
95  * @group Land Detector
96  */
97 PARAM_DEFINE_FLOAT(LNDMC_FFALL_TTRI, 0.3);
98 
99 /**
100  * Maximum altitude for multicopters
101  *
102  * The system will obey this limit as a
103  * hard altitude limit. This setting will
104  * be consolidated with the GF_MAX_VER_DIST
105  * parameter.
106  * A negative value indicates no altitude limitation.
107  *
108  * @unit m
109  * @min -1
110  * @max 10000
111  * @decimal 2
112  * @group Land Detector
113  *
114  */
115 PARAM_DEFINE_FLOAT(LNDMC_ALT_MAX, -1.0f);
116 
117 /**
118  * Low throttle detection threshold.
119  *
120  * Defines the commanded throttle value below which the land detector
121  * considers the vehicle to have "low thrust". This is one condition that
122  * is used to detect the ground contact state. The value is calculated as
123  * val = (MPC_THR_HOVER - MPC_THR_MIN) * LNDMC_LOW_T_THR + MPC_THR_MIN
124  * Increase this value if the system takes long time to detect landing.
125  *
126  * @unit norm
127  * @min 0.1
128  * @max 0.9
129  * @decimal 2
130  * @group Land Detector
131  *
132  */
133 PARAM_DEFINE_FLOAT(LNDMC_LOW_T_THR, 0.3);
Vector< float, 6 > f(float t, const Matrix< float, 6, 1 > &, const Matrix< float, 3, 1 > &)
Definition: integration.cpp:8
PARAM_DEFINE_FLOAT(LNDMC_Z_VEL_MAX, 0.50f)
Multicopter max climb rate.