mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-10 06:59:54 +08:00
bcaba7c720
modules developpers can provide - a description of the module - a list of the configuration variables and flags (configure and define) - a list of sections to add to the airframe file
26 lines
961 B
XML
26 lines
961 B
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<!--
|
|
Battery checker module
|
|
@define BAT_CHECKER_DELAY Number of seconds the battery voltage has to be
|
|
below LOW_BAT_LEVEL before the warning signal is
|
|
activated.
|
|
@define BAT_CHECKER_LED The LED to use for the warning signal.
|
|
-->
|
|
<module name="bat_checker">
|
|
<doc>
|
|
<description>Battery checker module</description>
|
|
<define name="BAT_CHECKER_DELAY" value="delay" description="number of seconds the battery voltage has to below LOW_BAT_LEVEL before warning signal is activated"/>
|
|
<define name="BAT_CHECKER_LED" value="X" description="led number to use for the warning signal"/>
|
|
</doc>
|
|
<header>
|
|
<file name="bat_checker.h"/>
|
|
</header>
|
|
<init fun="init_bat_checker()"/>
|
|
<periodic fun="bat_checker_periodic()" freq="2" autorun="TRUE"/>
|
|
<makefile target="ap">
|
|
<file name="bat_checker.c"/>
|
|
</makefile>
|
|
</module>
|
|
|