update booz drop module

This commit is contained in:
Felix Ruess
2010-06-12 12:59:21 +00:00
parent 56dc527edd
commit a072ac48e6
3 changed files with 18 additions and 0 deletions
+12
View File
@@ -1,5 +1,11 @@
<airframe name="BOOZ2_F1">
<modules main_freq="512">
<load name="booz_drop.xml"/>
<!--load name="booz_cam.xml"/-->
<!--load name="sonar_maxbotix_booz.xml"/-->
</modules>
<servos min="0" neutral="0" max="0xff">
<servo name="FRONT" no="0" min="0" neutral="0" max="255" />
<servo name="BACK" no="1" min="0" neutral="0" max="255" />
@@ -230,6 +236,12 @@
ap.CFLAGS += -DUSE_GPS_ACC4R
#ap.CFLAGS += -DGPS_LAG=0.3
ap.srcs += $(SRC_BOOZ_ARCH)/booz2_pwm_hw.c
sim.srcs += $(SRC_BOOZ_SIM)/booz2_pwm_hw.c
ap.CFLAGS += -DUSEMODULES
sim.CFLAGS += -DUSEMODULES
ap.CFLAGS += -DB2_GUIDANCE_H_USE_REF
sim.CFLAGS += -DB2_GUIDANCE_H_USE_REF
+2
View File
@@ -9,6 +9,8 @@
<periodic fun="booz_drop_periodic()" freq="10."/>
<makefile>
<flag name="USE_DROP"/>
<flag name="DROP_SERVO_OPEN" value="1700"/>
<flag name="DROP_SERVO_CLOSED" value="900"/>
<file name="booz_drop.c"/>
</makefile>
</module>
+4
View File
@@ -28,8 +28,12 @@
bool_t booz_drop_ball;
int16_t booz_drop_servo;
#ifndef DROP_SERVO_OPEN
#define DROP_SERVO_OPEN 1700
#endif
#ifndef DROP_SERVO_CLOSED
#define DROP_SERVO_CLOSED 900
#endif
void booz_drop_init(void) {
booz_drop_ball = FALSE;