mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 09:58:23 +08:00
update booz drop module
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user