Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
power_switch module

Simple power switch module to set a specific GPIO pin

No detailed description...

Example for airframe file

Add to your firmware section:

<module name="power_switch"/>

Module functions

Init Functions

These initialization functions are called once on startup.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw power_switch.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="power_switch" dir="boards">
<doc>
<description>Simple power switch module to set a specific GPIO pin</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="Board">
<dl_setting var="power_switch_status" min="0" step="1" max="1" shortname="pwr_switch" values="OFF|ON" handler="set" module="boards/power_switch"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="power_switch.h"/>
</header>
<init fun="power_switch_init()"/>
<makefile>
<file name="power_switch.c"/>
</makefile>
</module>