mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
booz_drop module update
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user