booz_drop module update

This commit is contained in:
Gautier Hattenberger
2011-09-28 15:30:56 +02:00
parent 457b44acdb
commit 5f14a3d219
3 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -1,4 +1,8 @@
<!DOCTYPE module SYSTEM "module.dtd">
<!--
DROP_SERVO_CLOSED and DROP_SERVO_OPEN can be redefined in airframe file
units: PWM width in us
-->
<module name="drop">
<!-- depend require="booz_pwm" -->
@@ -9,8 +13,6 @@
<periodic fun="booz_drop_periodic()" freq="10."/>
<makefile>
<define name="USE_DROP"/>
<define name="DROP_SERVO_OPEN" value="2120"/>
<define name="DROP_SERVO_CLOSED" value="1060"/>
<file name="booz_drop.c"/>
</makefile>
</module>
+2 -2
View File
@@ -5,8 +5,8 @@
<dl_settings NAME="Drop">
<dl_setting var="booz_drop_ball" min="0" step="1" max="1" module="drop/booz_drop" values="Closed|Open">
<strip_button name="OPEN" value="1"/>
<strip_button name="CLOSE" value="0"/>
<strip_button name="OPEN" value="1" group="drop"/>
<strip_button name="CLOSE" value="0" group="drop"/>
</dl_setting>
</dl_settings>
+1
View File
@@ -33,5 +33,6 @@ extern void booz_drop_init(void);
extern void booz_drop_periodic(void);
#define NavDropNow() ({ booz_drop_ball = TRUE; FALSE; })
#define NavDropClose() ({ booz_drop_ball = FALSE; FALSE; })
#endif /* BOOZ_DROP_H */