mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 00:37:37 +08:00
[uart_drop] rename for uniformity: module name='switch' type='uart'
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
|
||||
<module name="switch_uart" dir="switching">
|
||||
<doc>
|
||||
<description>Active swithes via UART commands.
|
||||
Module typically used in competitions to drop items like paint-balls. An arduino is a typical target.
|
||||
</description>
|
||||
</doc>
|
||||
<settings>
|
||||
<dl_settings NAME="Switch control">
|
||||
<dl_settings NAME="SWITCH">
|
||||
<dl_setting var="switch_uart_channel" min="0" step="1" max="4" module="switching/switch_uart" handler="SwitchUartChannel">
|
||||
<strip_button name="1" value="1" group="servo_switch"/>
|
||||
<strip_button name="2" value="2" group="servo_switch"/>
|
||||
<strip_button name="3" value="3" group="servo_switch"/>
|
||||
<strip_button name="4" value="4" group="servo_switch"/>
|
||||
</dl_setting>
|
||||
</dl_settings>
|
||||
</dl_settings>
|
||||
</settings>
|
||||
<header>
|
||||
<file name="switch_uart.h"/>
|
||||
</header>
|
||||
<makefile>
|
||||
<file name="switch_uart.c"/>
|
||||
<configure name="SWITCH_UART_PORT" default="uart1" case="upper|lower"/>
|
||||
<configure name="SWITCH_UART_BAUD" default="B115200"/>
|
||||
<define name="SWITCH_UART_PORT" value="$(SWITCH_UART_PORT_LOWER)"/>
|
||||
<define name="USE_$(SWITCH_UART_PORT_UPPER)"/>
|
||||
<define name="$(SWITCH_UART_PORT_UPPER)_BAUD" value="$(SWITCH_UART_BAUD)"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
Reference in New Issue
Block a user