PX4 Firmware
PX4 Autopilot Software http://px4.io
parameters.c
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright (c) 2017 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  * Maxbotix Sonar (mb12xx)
36  *
37  * @reboot_required true
38  *
39  * @boolean
40  * @group Sensors
41  */
42 PARAM_DEFINE_INT32(SENS_EN_MB12XX, 0);
43 
44 /**
45  * MaxBotix MB12XX Sensor 0 Rotation
46  *
47  * This parameter defines the rotation of the sensor relative to the platform.
48  *
49  * @reboot_required true
50  * @min 0
51  * @max 7
52  * @group Sensors
53  *
54  * @value 0 No rotation
55  * @value 1 Yaw 45°
56  * @value 2 Yaw 90°
57  * @value 3 Yaw 135°
58  * @value 4 Yaw 180°
59  * @value 5 Yaw 225°
60  * @value 6 Yaw 270°
61  * @value 7 Yaw 315°
62  */
63 PARAM_DEFINE_INT32(SENS_MB12_0_ROT, 0);
64 
65 /**
66  * MaxBotix MB12XX Sensor 1 Rotation
67  *
68  * This parameter defines the rotation of the sensor relative to the platform.
69  *
70  * @reboot_required true
71  * @min 0
72  * @max 7
73  * @group Sensors
74  *
75  * @value 0 No rotation
76  * @value 1 Yaw 45°
77  * @value 2 Yaw 90°
78  * @value 3 Yaw 135°
79  * @value 4 Yaw 180°
80  * @value 5 Yaw 225°
81  * @value 6 Yaw 270°
82  * @value 7 Yaw 315°
83  */
84 PARAM_DEFINE_INT32(SENS_MB12_1_ROT, 0);
85 
86 /**
87  * MaxBotix MB12XX Sensor 2 Rotation
88  *
89  * This parameter defines the rotation of the sensor relative to the platform.
90  *
91  * @reboot_required true
92  * @min 0
93  * @max 7
94  * @group Sensors
95  *
96  * @value 0 No rotation
97  * @value 1 Yaw 45°
98  * @value 2 Yaw 90°
99  * @value 3 Yaw 135°
100  * @value 4 Yaw 180°
101  * @value 5 Yaw 225°
102  * @value 6 Yaw 270°
103  * @value 7 Yaw 315°
104  */
105 PARAM_DEFINE_INT32(SENS_MB12_2_ROT, 0);
106 
107 /**
108  * MaxBotix MB12XX Sensor 3 Rotation
109  *
110  * This parameter defines the rotation of the sensor relative to the platform.
111  *
112  * @reboot_required true
113  * @min 0
114  * @max 7
115  * @group Sensors
116  *
117  * @value 0 No rotation
118  * @value 1 Yaw 45°
119  * @value 2 Yaw 90°
120  * @value 3 Yaw 135°
121  * @value 4 Yaw 180°
122  * @value 5 Yaw 225°
123  * @value 6 Yaw 270°
124  * @value 7 Yaw 315°
125  */
126 PARAM_DEFINE_INT32(SENS_MB12_3_ROT, 0);
127 
128 /**
129  * MaxBotix MB12XX Sensor 4 Rotation
130  *
131  * This parameter defines the rotation of the sensor relative to the platform.
132  *
133  * @reboot_required true
134  * @min 0
135  * @max 7
136  * @group Sensors
137  *
138  * @value 0 No rotation
139  * @value 1 Yaw 45°
140  * @value 2 Yaw 90°
141  * @value 3 Yaw 135°
142  * @value 4 Yaw 180°
143  * @value 5 Yaw 225°
144  * @value 6 Yaw 270°
145  * @value 7 Yaw 315°
146  */
147 PARAM_DEFINE_INT32(SENS_MB12_4_ROT, 0);
148 
149 /**
150  * MaxBotix MB12XX Sensor 5 Rotation
151  *
152  * This parameter defines the rotation of the sensor relative to the platform.
153  *
154  * @reboot_required true
155  * @min 0
156  * @max 7
157  * @group Sensors
158  *
159  * @value 0 No rotation
160  * @value 1 Yaw 45°
161  * @value 2 Yaw 90°
162  * @value 3 Yaw 135°
163  * @value 4 Yaw 180°
164  * @value 5 Yaw 225°
165  * @value 6 Yaw 270°
166  * @value 7 Yaw 315°
167  */
168 PARAM_DEFINE_INT32(SENS_MB12_5_ROT, 0);
169 
170 /**
171  * MaxBotix MB12XX Sensor 6 Rotation
172  *
173  * This parameter defines the rotation of the sensor relative to the platform.
174  *
175  * @reboot_required true
176  * @min 0
177  * @max 7
178  * @group Sensors
179  *
180  * @value 0 No rotation
181  * @value 1 Yaw 45°
182  * @value 2 Yaw 90°
183  * @value 3 Yaw 135°
184  * @value 4 Yaw 180°
185  * @value 5 Yaw 225°
186  * @value 6 Yaw 270°
187  * @value 7 Yaw 315°
188  */
189 PARAM_DEFINE_INT32(SENS_MB12_6_ROT, 0);
190 
191 /**
192  * MaxBotix MB12XX Sensor 7 Rotation
193  *
194  * This parameter defines the rotation of the sensor relative to the platform.
195  *
196  * @reboot_required true
197  * @min 0
198  * @max 7
199  * @group Sensors
200  *
201  * @value 0 No rotation
202  * @value 1 Yaw 45°
203  * @value 2 Yaw 90°
204  * @value 3 Yaw 135°
205  * @value 4 Yaw 180°
206  * @value 5 Yaw 225°
207  * @value 6 Yaw 270°
208  * @value 7 Yaw 315°
209  */
210 PARAM_DEFINE_INT32(SENS_MB12_7_ROT, 0);
211 
212 /**
213  * MaxBotix MB12XX Sensor 8 Rotation
214  *
215  * This parameter defines the rotation of the sensor relative to the platform.
216  *
217  * @reboot_required true
218  * @min 0
219  * @max 7
220  * @group Sensors
221  *
222  * @value 0 No rotation
223  * @value 1 Yaw 45°
224  * @value 2 Yaw 90°
225  * @value 3 Yaw 135°
226  * @value 4 Yaw 180°
227  * @value 5 Yaw 225°
228  * @value 6 Yaw 270°
229  * @value 7 Yaw 315°
230  */
231 PARAM_DEFINE_INT32(SENS_MB12_8_ROT, 0);
232 
233 /**
234  * MaxBotix MB12XX Sensor 9 Rotation
235  *
236  * This parameter defines the rotation of the sensor relative to the platform.
237  *
238  * @reboot_required true
239  * @min 0
240  * @max 7
241  * @group Sensors
242  *
243  * @value 0 No rotation
244  * @value 1 Yaw 45°
245  * @value 2 Yaw 90°
246  * @value 3 Yaw 135°
247  * @value 4 Yaw 180°
248  * @value 5 Yaw 225°
249  * @value 6 Yaw 270°
250  * @value 7 Yaw 315°
251  */
252 PARAM_DEFINE_INT32(SENS_MB12_9_ROT, 0);
253 
254 /**
255  * MaxBotix MB12XX Sensor 10 Rotation
256  *
257  * This parameter defines the rotation of the sensor relative to the platform.
258  *
259  * @reboot_required true
260  * @min 0
261  * @max 7
262  * @group Sensors
263  *
264  * @value 0 No rotation
265  * @value 1 Yaw 45°
266  * @value 2 Yaw 90°
267  * @value 3 Yaw 135°
268  * @value 4 Yaw 180°
269  * @value 5 Yaw 225°
270  * @value 6 Yaw 270°
271  * @value 7 Yaw 315°
272  */
273 PARAM_DEFINE_INT32(SENS_MB12_10_ROT, 0);
274 
275 /**
276  * MaxBotix MB12XX Sensor 12 Rotation
277  *
278  * This parameter defines the rotation of the sensor relative to the platform.
279  *
280  * @reboot_required true
281  * @min 0
282  * @max 7
283  * @group Sensors
284  *
285  * @value 0 No rotation
286  * @value 1 Yaw 45°
287  * @value 2 Yaw 90°
288  * @value 3 Yaw 135°
289  * @value 4 Yaw 180°
290  * @value 5 Yaw 225°
291  * @value 6 Yaw 270°
292  * @value 7 Yaw 315°
293  */
294 PARAM_DEFINE_INT32(SENS_MB12_11_ROT, 0);
PARAM_DEFINE_INT32(SENS_EN_BATT, 0)
SMBUS Smart battery driver (BQ40Z50)