Files
paparazzi/conf/modules/hackhd.xml
2014-09-30 19:19:47 +02:00

35 lines
1.6 KiB
XML

<!DOCTYPE module SYSTEM "./module.dtd">
<module name="hackhd" dir="digital_cam">
<doc>
<description>HackHD control</description>
<configure name="HACKHD_GPIO" value="GPIO" description="control pin (e.g. GPIOC,GPIO5)"/>
<define name="HACKHD_SYNC_SEND" value="TRUE|FALSE" description="enable telemetry report on camera position"/>
<define name="HACKHD_LOG" value="TRUE|FALSE" description="enable logging of camera shot orientation and position"/>
</doc>
<settings>
<dl_settings name="control">
<dl_settings name="hackhd">
<dl_setting max="5" min="0" step="1" module="digital_cam/hackhd" var="hackhd.status" handler="SendCmd" shortname="HackHD" values="NONE|ON|OFF|START_REC|STOP_REC|SHOOT">
<strip_button name="HackHD Power ON" icon="on.png" value="1" group="maindc"/>
<strip_button name="HackHD Power OFF" icon="off.png" value="2" group="maindc"/>
<strip_button name="HackHD Start Record" icon="lookfore.png" value="3" group="hackhd"/>
<strip_button name="HackHD Stop Record" icon="kill.png" value="4" group="hackhd"/>
<strip_button name="HackHD Take Picture" icon="digital-camera.png" value="5" group="hackhd"/>
</dl_setting>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="hackhd.h"/>
</header>
<init fun="hackhd_init()"/>
<periodic fun="hackhd_periodic()" freq="10"/>
<periodic fun="hackhd_autoshoot()" freq="10" start="hackhd_autoshoot_start()" autorun="FALSE"/>
<makefile>
<define name="HACKHD_GPIO" value="$(HACKHD_GPIO)"/>
<file name="hackhd.c"/>
</makefile>
</module>