Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
booz_drop.c
Go to the documentation of this file.
1 /*
2  * $Id: $
3  *
4  * Copyright (C) 2009 Flixr
5  *
6  * This file is part of paparazzi.
7  *
8  * paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
24 #include "modules/drop/booz_drop.h"
25 #include "modules/core/booz_pwm_arch.h"
26 #include "generated/airframe.h"
27 
30 
31 #ifndef DROP_SERVO_OPEN
32 #define DROP_SERVO_OPEN 1700
33 #endif
34 #ifndef DROP_SERVO_CLOSED
35 #define DROP_SERVO_CLOSED 900
36 #endif
37 
38 // PWM definition
39 #ifndef BoozDropPwm
40 #define BoozDropPwm(_v) BoozSetPwmValue(_v)
41 #endif
42 
43 void booz_drop_init(void) {
46 }
47 
48 void booz_drop_periodic(void) {
49  if (booz_drop_ball == TRUE)
51  else
54 }
bool_t booz_drop_ball
Definition: booz_drop.c:28
#define DROP_SERVO_CLOSED
Definition: booz_drop.c:35
void booz_drop_periodic(void)
Definition: booz_drop.c:48
#define FALSE
Definition: imu_chimu.h:141
void booz_drop_init(void)
Definition: booz_drop.c:43
signed short int16_t
Definition: types.h:17
#define TRUE
Definition: imu_chimu.h:144
#define BoozDropPwm(_v)
Definition: booz_drop.c:40
#define DROP_SERVO_OPEN
Definition: booz_drop.c:32
int16_t booz_drop_servo
Definition: booz_drop.c:29